Skip to content

Drawer

A drawer is a component that opens from the side of the screen.

Loading Code Block...
Loading Code Block...
Loading Code Block...
Loading Code Block...

PropsDefaultTypeDescription
openfalsebooleanWhether the drawer is open or not
sideleft'left' |' right'The side of the window the drawer will open from
onOpenChange() => {}functionA function that is called when the drawer is opened or closed
classNameundefinedstringA class name to apply to the drawer
headerundefinedstringThe title of the drawer
footerundefinedReact.ReactNodeThe footer of the drawer
icon
icon icon icon icon