Documentation
Getting Started
Foundations
Form
Layout
Display
Navigation
Overlay
Feedback
Menubar
Navigation
A horizontal menu component that provides navigation and actions through dropdown menus. Supports nested submenus, keyboard navigation, and various item types.
Installation
bash
1npx @dinachi/cli@latest add menubarRun the CLI command above to automatically install the component and its dependencies.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | The currently active menu value |
defaultValue | string | — | The default active menu value |
onValueChange | (value: string) => void | — | Callback fired when the active menu changes |
disabled | boolean | false | Whether the menubar is disabled |
dir | 'ltr' | 'rtl' | 'ltr' | The reading direction of the menubar |