Documentation
Getting Started
Foundations
Form
Layout
Display
Navigation
Overlay
Feedback
Navigation Menu
Navigation
A collection of navigation links with dropdown functionality. Features smooth animations, keyboard navigation, and flexible content positioning.
Installation
bash
1npx @dinachi/cli@latest add navigation-menuRun the CLI command above to automatically install the component and its dependencies.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | The currently active navigation item |
defaultValue | string | — | The default active navigation item |
onValueChange | (value: string) => void | — | Callback fired when the active item changes |
disabled | boolean | false | Whether the navigation menu is disabled |
dir | 'ltr' | 'rtl' | 'ltr' | The reading direction of the navigation menu |
orientation | 'horizontal' | 'vertical' | 'horizontal' | The orientation of the navigation menu |