

Every state


default


focus


open


hover-option


focus-option


chosen


chosen-closed
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "drawer-picker" | Id prefix for the title. |
| openLabel | string | "Choose a cabin" | Trigger text while nothing is chosen. |
| title | string | "Cabin types" | Sheet heading. |
| closeLabel | string | "Close" | Text of the close link. |
| options | DrawerPickerOption[] | six cabins | The rows: id, name, detail, capacity (1 shows one person, more a group). |
| value | string | null | – | The chosen id (controlled). |
| defaultValue | string | null | null | The chosen id to start with. |
| onValueChange | (id: string) => void | – | Called when a row is chosen. |
| open | boolean | – | The drawer is open (controlled). |
| defaultOpen | boolean | – | Opens the drawer on mount (previews and sheets). |
| onOpenChange | (open: boolean) => void | – | Called when the drawer opens or closes. |
| contained | boolean | – | Draws the panel inside the nearest relative parent instead of fixed over the page. For previews and sheets; leave off on a real page. |
| className | string | – | Extra classes on the wrapper. |
More drawers
All 4drawer-04 is in UI ProGet UI Pro, €199


