The properties of the Modal component are available when variant="temporary" is set.


Name Type Default Description
anchor enum: 'left' |
 'top' |
 'right' |
'left' Side from which the drawer will appear.
children node The contents of the drawer.
classes object Override or extend the styles applied to the component. See CSS API below for more details.
elevation number 16 The elevation of the drawer.
ModalProps object Properties applied to the Modal element.
onClose func Callback fired when the component requests to be closed.

function(event: object) => void
event: The event source of the callback
open bool false If true, the drawer is open.
PaperProps object Properties applied to the Paper element.
SlideProps object Properties applied to the Slide element.
transitionDuration union: 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 enum: 'permanent' |
 'persistent' |
'temporary' The variant of drawer.

Any other properties supplied will be spread to the root element.


You can override all the class names injected by Material-UI thanks to the classes property. This property accepts the following keys:

  • docked
  • paper
  • paperAnchorLeft
  • paperAnchorRight
  • paperAnchorTop
  • paperAnchorBottom
  • paperAnchorDockedLeft
  • paperAnchorDockedTop
  • paperAnchorDockedRight
  • paperAnchorDockedBottom
  • modal

Have a look at overriding with classes section and the implementation of the component for more detail.

If using the overrides key of the theme as documented here, you need to use the following style sheet name: MuiDrawer.