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 menubar

Run the CLI command above to automatically install the component and its dependencies.

API Reference

PropTypeDefaultDescription
value
stringThe currently active menu value
defaultValue
stringThe default active menu value
onValueChange
(value: string) => voidCallback fired when the active menu changes
disabled
booleanfalseWhether the menubar is disabled
dir
'ltr' | 'rtl''ltr'The reading direction of the menubar