drawer API
overlays/drawer.tsx
Drawer
Props
Prop | Type | Default | Description |
---|---|---|---|
children * | React.ReactNode | — | |
open * | boolean | — | |
side | "left" | "right" | "top" | "bottom" | undefined | right | |
size | "sm" | "md" | "lg" | "xl" | "full" | undefined | md | |
description | string | undefined | — | |
showCloseButton | boolean | undefined | true | |
hotkeys | {} | undefined | [] | Additional hotkeys for drawer actions |
Show native HTML props
Native HTML Props
Prop | Type | Default | Description |
---|---|---|---|
onOpenChange * | (open: boolean) => void | — | |
title | string | undefined | — |