Menu
Vertical menu component for navigation with support for nested items, icons, and active states.
Import
import { Menu, Row, Text } from '@sigx/daisyui';
Basic Menu
Loading preview...
Menu with Active Item
Use model binding to track the active menu item:
Loading preview...
Menu with Icons
Loading preview...
Menu with Title
Loading preview...
Nested Menu (Submenu)
Loading preview...
Menu Sizes
Loading preview...
Horizontal Menu
Loading preview...
Menu with Badges
Loading preview...
Disabled Items
Loading preview...
Sidebar Navigation Example
Loading preview...
Props
Menu Props
| Prop | Type | Default | Description |
|---|---|---|---|
model | () => string | - | Two-way binding for active item |
size | 'xs' | 'sm' | 'md' | 'lg' | 'md' | Menu item size |
horizontal | boolean | false | Horizontal layout |
class | string | - | Additional CSS classes |
Menu.Item Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | - | Value for model binding |
active | boolean | false | Force active state |
disabled | boolean | false | Disable the item |
class | string | - | Additional CSS classes |
Menu.Title Props
| Prop | Type | Default | Description |
|---|---|---|---|
class | string | - | Additional CSS classes |
Events
| Event | Type | Description |
|---|---|---|
update:modelValue | (value: string) => void | Emitted when active item changes |