Menu
Markdown for agentsDropdown menu with keyboard navigation and ARIA menu semantics.
npx slipstream-ui@latest add menuUsage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| open | boolean | — | Controlled open state. |
| onOpenChange | (open: boolean) => void | — | Called when the open state changes. |
Accessibility
- role=menu/menuitem with aria-haspopup/aria-expanded on the trigger.
- Arrow keys, Home/End, and Escape navigate and close the menu.