Drawer

An interactive element fixed to the edge of the screen.

General

Basic usage.

Placement

APIs

Drawer.Props

AttributeDescriptionTypeAccepted valuesDefault
visibleopen or closeboolean-false
onCloseclose event() => void--
onContentClickevent from modal content(e: MouseEvent) => void--
wrapClassNameclassName of the drawer dialogstring--
keyboardpress Esc to close drawerboolean-true
disableBackdropClickclick background and don't closeboolean-false
placementposition of the drawerDrawerPlacement-right
...native propsHTMLAttributes'name', 'className', ...-

Drawer.Title.Props

AttributeDescriptionTypeAccepted valuesDefault
...native propsHTMLAttributes'id', 'className', ...-

Drawer.Subtitle.Props

AttributeDescriptionTypeAccepted valuesDefault
...native propsHTMLAttributes'id', 'className', ...-

Drawer.Content.Props

AttributeDescriptionTypeAccepted valuesDefault
...native propsHTMLAttributes'id', 'className', ...-

DrawerPlacement

type DrawerPlacement = 'top' | 'bottom' | 'right' | 'left'