Created
January 19, 2020 17:51
-
-
Save r3dm1ke/56fa91bebc402b7a3ccbd46a0e28c353 to your computer and use it in GitHub Desktop.
Generating comments from other comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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']; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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