MazDrawer
MazDrawer is a standalone component to add a collapsible sidebar at the top and bottom bar
TIP
This component uses <Teleport to="body"> with MazBackdrop, so you can implement this component anywhere and it inherits all its props
Basic usage
Props
| Name | Description | Type | Required | Default | Possible values |
|---|---|---|---|---|---|
| title | The title of the drawer | string | No | undefined | - |
| variant | The variant of the drawer | "right" | "top" | "left" | "bottom" | No | 'right' | right', 'top', 'left', 'bottom |
| size | The size of the drawer | string | No | '30rem' | - |
| backdrop-class | The class of the backdrop | string | No | undefined | - |
| hide-close-button | Disable the close button | boolean | No | undefined | - |
| no-close | any | No | false | - |
Events
| Event name | Properties | Description |
|---|---|---|
| close | emitted when drawer is close (after animation) | |
| open | emitted when drawer is open | |
| before-close | emitted before drawer is close | |
| update:model-value | value boolean - The value of the model | emitted when drawer is open or close |
Slots
| Name | Description | Bindings |
|---|---|---|
| title | ||
| default |