Menu
MegaMenu
A menubar whose items open wide panels of grouped links in columns, like this site's own top bar.
WAI-ARIA tested
Import
main.ts
import { MegaMenu } from '@vitral/vue';Horizontal
Last link: —
Vertical
API
Read from packages/vue/src/components/MegaMenu/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| model | MegaMenuItem[] | — |
| orientation | 'horizontal' | 'vertical' | A bar (the default) whose panels drop below it, or a column whose panels open beside it. |
| ariaLabel | string | Names the menu. |
| ariaLabelledby | string | — |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.
Slots
| Name | Slot props | Description |
|---|---|---|
| start | — | — |
| end | — | — |
| item | (props: { item: MenuItem | MegaMenuItem; root: boolean; focused: boolean; open: boolean }) | An item's content, top-level or in a panel. |