| Prop | Default | Type |
|---|---|---|
as | 'div' | AsTag | ComponentThe element or component this component should render as. Can be overwritten by |
asChild | booleanChange the default rendered element for the one passed as a child, merging their props and behavior. Read our Composition guide for more details. | |
defaultValue | stringThe value of the menu item that should be active when initially rendered. Use when you do not need to control the value state. | |
modelValue | stringThe controlled value of the sub menu item to activate. Can be used as | |
orientation | 'horizontal' | 'vertical' | 'horizontal'The orientation of the menu. |
| Emit | Payload |
|---|---|
update:modelValue | [value: string]Event handler called when the value changes. |
| Slots (default) | Payload |
|---|---|
modelValue | stringCurrent input values |
