Drawer
A Drawer component from the Sigil design system.
Import
import { Drawer, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription } from "@sigil-ui/components";Preview
Usage
<Drawer>...</Drawer>Sub-components
This component includes the following parts:
<DrawerTrigger><DrawerClose><DrawerContent><DrawerHeader><DrawerFooter><DrawerTitle><DrawerDescription>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
shouldScaleBackground | boolean | — | — |
open | boolean | — | — |
onOpenChange | (open: boolean) => void | — | — |
Token integration
| CSS Variable | Purpose |
|---|---|
--s-overlay-bg | Overlay bg |
--s-overlay-blur | Overlay blur |
--s-overlay-radius | Overlay radius |
--s-radius-lg | Radius lg |
--s-overlay-border | Overlay border |
--s-border | Border |
--s-border-style | Border style |
--s-overlay-surface | Overlay surface |
--s-surface | Surface |
--s-overlay-shadow | Overlay shadow |
--s-shadow-xl | Shadow xl |
--s-radius-full | Radius full |