Drawer

An interactive element fixed to the edge of the screen.

General

Basic usage.

Preview
See code

Placement

Change the placement of the drawer with the placement prop.

Preview
See code

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'
Edit this page on GitHub

Previous

Dot

Next

Fieldset

MADE & DESIGNED WITHBY BRUNO ANDRADE
docs background gradient blue
docs background gradient violet