Menu
TieredMenu
A menu whose items open submenus beside them, to any depth, inline or as a popup.
WAI-ARIA tested
Import
main.ts
import { TieredMenu } from '@vitral/vue';Inline
Last command: —
Popup
API
Read from packages/vue/src/components/TieredMenu/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| model | MenuItem[] | The items; an item's `items` open as a submenu beside it, to any depth. |
| popup | boolean | A popup menu, opened by `toggle(event)` / `show(event)` and anchored to the event's element. |
| appendTo | string | Where a popup renders: `'body'` (the default), `'self'` to stay in place, or a selector. |
| placement | OverlayPlacement | — |
| ariaLabel | string | Names the menu. A popup without one is named by the element that opened it. |
| ariaLabelledby | string | — |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.
Emits
| Event | Payload | Description |
|---|---|---|
| show | — | — |
| hide | — | — |
Slots
| Name | Slot props | Description |
|---|---|---|
| start | — | — |
| end | — | — |
| item | (props: NestedMenuItemSlotProps) | An item's content. The menuitem element around it, with its role and keyboard, stays. |