diff --git a/docs/pages/api/drawer.md b/docs/pages/api/drawer.md index a6c375371062fb..1990635c0f441d 100644 --- a/docs/pages/api/drawer.md +++ b/docs/pages/api/drawer.md @@ -32,7 +32,7 @@ when `variant="temporary"` is set. | ModalProps | object | {} | Props applied to the [`Modal`](/api/modal/) element. | | onClose | func | | Callback fired when the component requests to be closed.

**Signature:**
`function(event: object) => void`
*event:* The event source of the callback. | | open | bool | false | If `true`, the drawer is open. | -| PaperProps | object | | Props applied to the [`Paper`](/api/paper/) element. | +| PaperProps | object | {} | Props applied to the [`Paper`](/api/paper/) element. | | SlideProps | object | | Props applied to the [`Slide`](/api/slide/) element. | | transitionDuration | number
| { enter?: number, exit?: number }
| { enter: duration.enteringScreen, exit: duration.leavingScreen } | The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object. | | variant | 'permanent'
| 'persistent'
| 'temporary'
| 'temporary' | The variant to use. | diff --git a/packages/material-ui/src/Drawer/Drawer.js b/packages/material-ui/src/Drawer/Drawer.js index 4ac3496e183dac..3421722f7f0b4f 100644 --- a/packages/material-ui/src/Drawer/Drawer.js +++ b/packages/material-ui/src/Drawer/Drawer.js @@ -113,7 +113,7 @@ const Drawer = React.forwardRef(function Drawer(props, ref) { ModalProps: { BackdropProps: BackdropPropsProp, ...ModalProps } = {}, onClose, open = false, - PaperProps, + PaperProps = {}, SlideProps, transitionDuration = defaultTransitionDuration, variant = 'temporary', @@ -134,9 +134,14 @@ const Drawer = React.forwardRef(function Drawer(props, ref) { {children}