

Every state


default


focus


open


hover-row


focus-row


search


settings
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "drawer-nav" | Id prefix. |
| brand | string | "Veldpost" | Wordmark text, also the dialog name. |
| openLabel | string | "Menu" | Trigger text. |
| closeLabel | string | "Close menu" | Close button text. |
| searchLabel | string | "Search" | Search tab text. |
| searchPlaceholder | string | – | Placeholder of the search field. |
| settingsLabel | string | "Settings" | Settings tab text. |
| settingsBadge | number | 2 | Count on the Settings tab; 0 hides it. |
| settings | { id; label; description; defaultChecked? }[] | two switches | Switches in the Settings panel. |
| items | DrawerNavItem[] | six sections | Icon rows: label, href, icon, more (chevron), current. |
| secondary | DrawerNavLink[] | three links | Links in the grey group. |
| defaultTab | "search" | "settings" | null | null | Which tab starts open. |
| onSearch | (query: string) => void | – | Called when the search is submitted. |
| onSettingChange | (id: string, on: boolean) => void | – | Called when a switch is toggled. |
| 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-03 is in UI ProGet UI Pro, €199


