The TairoMenu component is a versatile navigation menu that provides a range of features and styling options. It's built on top of Reka UI's NavigationMenu component and extends its functionality with additional components and styling.
| Model | Type |
|---|---|
v-model | stringThe controlled value of the menu item to activate. Can be used as `v-model`. |
| Prop | Type |
|---|---|
asdefault: - | AsTag | ComponentThe element or component this component should render as. Can be overwritten by `asChild`. |
as-childdefault: - | booleanChange the default rendered element for the one passed as a child, merging their props and behavior. Read our [Composition](https://www.reka-ui.com/docs/guides/composition) guide for more details. |
default-valuedefault: - | stringThe value of the menu item that should be active when initially rendered. Use when you do not need to control the value state. |
delay-durationdefault: - | numberThe duration from when the pointer enters the trigger until the tooltip gets opened. |
dirdefault: - | Direction_4The reading direction of the combobox when applicable. If omitted, inherits globally from `ConfigProvider` or assumes LTR (left-to-right) reading mode. |
disable-click-triggerdefault: - | booleanIf `true`, menu cannot be open by click on trigger |
disable-hover-triggerdefault: - | booleanIf `true`, menu cannot be open by hover on trigger |
disable-pointer-leave-closedefault: - | booleanIf `true`, menu will not close during pointer leave event |
orientationdefault: - | Orientation_2The orientation of the menu. |
skip-delay-durationdefault: - | numberHow much time a user has to enter another trigger without incurring a delay again. |
unmount-on-hidedefault: - | booleanWhen `true`, the element will be unmounted on closed state. |
| Slot | Type |
|---|---|
#default | {} |
| Prop | Type |
|---|---|
asdefault: - | AsTag | ComponentThe element or component this component should render as. Can be overwritten by `asChild`. |
as-childdefault: - | booleanChange the default rendered element for the one passed as a child, merging their props and behavior. Read our [Composition](https://www.reka-ui.com/docs/guides/composition) guide for more details. |
disable-outside-pointer-eventsdefault: - | booleanWhen `true`, hover/focus/click interactions will be disabled on elements outside the `DismissableLayer`. Users will need to click twice on outside elements to interact with them: once to close the `DismissableLayer`, and again to trigger the element. |
force-mountdefault: - | booleanUsed to force mounting when more control is needed. Useful when controlling animation with Vue animation libraries. |
| Event | Emitted Value Type |
|---|---|
escape-key-down | [event: KeyboardEvent] |
pointer-down-outside | [event: PointerDownOutsideEvent] |
focus-outside | [event: FocusOutsideEvent] |
interact-outside | [event: PointerDownOutsideEvent | FocusOutsideEvent] |
| Slot | Type |
|---|---|
#default | {} |
| Prop | Type |
|---|---|
asdefault: - | AsTag | ComponentThe element or component this component should render as. Can be overwritten by `asChild`. |
as-childdefault: - | booleanChange the default rendered element for the one passed as a child, merging their props and behavior. Read our [Composition](https://www.reka-ui.com/docs/guides/composition) guide for more details. |
force-mountdefault: - | booleanUsed to force mounting when more control is needed. Useful when controlling animation with Vue animation libraries. |
| Slot | Type |
|---|---|
#default | {} |
| Prop | Type |
|---|---|
asdefault: - | AsTag | ComponentThe element or component this component should render as. Can be overwritten by `asChild`. |
as-childdefault: - | booleanChange the default rendered element for the one passed as a child, merging their props and behavior. Read our [Composition](https://www.reka-ui.com/docs/guides/composition) guide for more details. |
valuedefault: - | stringA unique value that associates the item with an active value when the navigation menu is controlled. This prop is managed automatically when uncontrolled. |
| Slot | Type |
|---|---|
#default | {} |
| Prop | Type |
|---|---|
activedefault: - | booleanUsed to identify the link as the currently active page. |
asdefault: - | AsTag | ComponentThe element or component this component should render as. Can be overwritten by `asChild`. |
as-childdefault: - | booleanChange the default rendered element for the one passed as a child, merging their props and behavior. Read our [Composition](https://www.reka-ui.com/docs/guides/composition) guide for more details. |
variantdefault: "default" | "default" | "tab" |
| Event | Emitted Value Type |
|---|---|
select | [payload: CustomEvent<{ originalEvent: Event; }>] |
| Slot | Type |
|---|---|
#default | {} |
| Prop | Type |
|---|---|
activedefault: - | booleanUsed to identify the link as the currently active page. |
asdefault: - | AsTag | ComponentThe element or component this component should render as. Can be overwritten by `asChild`. |
as-childdefault: - | booleanChange the default rendered element for the one passed as a child, merging their props and behavior. Read our [Composition](https://www.reka-ui.com/docs/guides/composition) guide for more details. |
| Event | Emitted Value Type |
|---|---|
select | [payload: CustomEvent<{ originalEvent: Event; }>] |
| Slot | Type |
|---|---|
#default | {} |
| Prop | Type |
|---|---|
asdefault: - | AsTag | ComponentThe element or component this component should render as. Can be overwritten by `asChild`. |
as-childdefault: - | booleanChange the default rendered element for the one passed as a child, merging their props and behavior. Read our [Composition](https://www.reka-ui.com/docs/guides/composition) guide for more details. |
| Slot | Type |
|---|---|
#default | {} |
| Slot | Type |
|---|---|
#default | {} |
| Prop | Type |
|---|---|
asdefault: - | AsTag | ComponentThe element or component this component should render as. Can be overwritten by `asChild`. |
as-childdefault: - | booleanChange the default rendered element for the one passed as a child, merging their props and behavior. Read our [Composition](https://www.reka-ui.com/docs/guides/composition) guide for more details. |
disableddefault: - | booleanWhen `true`, prevents the user from interacting with item |
| Slot | Type |
|---|---|
#default | {} |
| Prop | Type |
|---|---|
aligndefault: - | "center" | "start" | "end"Placement of the viewport for css variables `(--reka-navigation-menu-viewport-left, --reka-navigation-menu-viewport-top)`. |
asdefault: - | AsTag | ComponentThe element or component this component should render as. Can be overwritten by `asChild`. |
as-childdefault: - | booleanChange the default rendered element for the one passed as a child, merging their props and behavior. Read our [Composition](https://www.reka-ui.com/docs/guides/composition) guide for more details. |
force-mountdefault: - | booleanUsed to force mounting when more control is needed. Useful when controlling animation with Vue animation libraries. |