Menu
Dock
A strip of large icons that grow under the pointer, each labelled with a tooltip.
WAI-ARIA tested
Import
main.ts
import { Dock } from '@vitral/vue';Bottom
Left
API
Read from packages/vue/src/components/Dock/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| model | MenuItem[] | The items; each item's `label` names it and shows as a tooltip. |
| position | 'bottom' | 'top' | 'left' | 'right' | The edge it sits on. Defaults to `'bottom'`. |
| magnification | boolean | Grow the items under the pointer. Defaults to true. |
| ariaLabel | string | Names the dock. |
| ariaLabelledby | string | — |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.
Slots
| Name | Slot props | Description |
|---|---|---|
| item | (props: { item: MenuItem; index: number }) | An item's content: an icon or an image. |