Menu
Vertical navigation menu
Collapsible Menu
Menu with expandable sections
Show Code
API Props
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
| items* | { label: string; href?: ZodOptional; active?: ZodDefault; disabled?: ZodDefault; children?: ZodOptional }[] | Yes | - | Array of menu items with optional nested structure Examples: [{ label: "Home", href: "/", active: true }, { label: "About", href: "/about" }], [{ label: "Products", children: [{ label: "Web Apps", href: "/web" }] }] Since: 1.0.0 |
| children | any | No | - | Component content |
| class | string | No | - | Additional CSS classes |
| compact | boolean | No | false | Use compact spacing for menu items |
| horizontal | boolean | No | false | Display menu horizontally instead of vertically |
| id | string | No | - | HTML id attribute |
| size | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | No | "md" | Component size |