Drawer
A drawer is a component that opens from the side of the screen.
Loading Code Block...
Loading Code Block...
Loading Code Block...
Scrollable
Section titled “Scrollable”Loading Code Block...
Props | Default | Type | Description |
---|---|---|---|
open | false | boolean | Whether the drawer is open or not |
side | left | 'left' |' right' | The side of the window the drawer will open from |
onOpenChange | () => {} | function | A function that is called when the drawer is opened or closed |
className | undefined | string | A class name to apply to the drawer |
header | undefined | string | The title of the drawer |
footer | undefined | React.ReactNode | The footer of the drawer |