Skip to content

Instantly share code, notes, and snippets.

@r3dm1ke
Created January 19, 2020 17:51
Show Gist options
  • Select an option

  • Save r3dm1ke/56fa91bebc402b7a3ccbd46a0e28c353 to your computer and use it in GitHub Desktop.

Select an option

Save r3dm1ke/56fa91bebc402b7a3ccbd46a0e28c353 to your computer and use it in GitHub Desktop.
Generating comments from other comments
export interface BackdropProps
extends StandardProps<
React.HTMLAttributes<HTMLDivElement> & Partial<FadeProps>,
BackdropClassKey
> {
/**
* If `true`, the backdrop is invisible.
* It can be used when rendering a popover or a custom select component.
*/
invisible?: boolean;
/**
* If `true`, the backdrop is open.
*/
open: boolean;
/**
* The duration for the transition, in milliseconds.
* You may specify a single timeout for all transitions, or individually with an object.
*/
transitionDuration?: TransitionProps['timeout'];
}
Backdrop.propTypes = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit the d.ts file and run "yarn proptypes" |
// ----------------------------------------------------------------------
/**
* The content of the component.
*/
children: PropTypes.node,
/**
* Override or extend the styles applied to the component.
* See [CSS API](#css) below for more details.
*/
classes: PropTypes.object,
/**
* @ignore
*/
className: PropTypes.string,
/**
* If `true`, the backdrop is invisible.
* It can be used when rendering a popover or a custom select component.
*/
invisible: PropTypes.bool,
/**
* If `true`, the backdrop is open.
*/
open: PropTypes.bool.isRequired,
/**
* The duration for the transition, in milliseconds.
* You may specify a single timeout for all transitions, or individually with an object.
*/
transitionDuration: PropTypes.oneOfType([
PropTypes.number,
PropTypes.shape({
appear: PropTypes.number,
enter: PropTypes.number,
exit: PropTypes.number,
}),
]),
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment