Prop | Default | Type |
---|---|---|
as | 'div' | AsTag | Component The element or component this component should render as. Can be overwritten by |
asChild | boolean Change the default rendered element for the one passed as a child, merging their props and behavior. Read our Composition guide for more details. | |
defaultValue | string The value of the menu item that should be active when initially rendered. Use when you do not need to control the value state. | |
modelValue | string The 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 | string Current input values |