vael-ui v0.3.10

Gestures

Dock

A macOS-style row of icons that magnify as the pointer approaches them.

Install

import { Dock } from 'vael-ui'

Playground

import { Dock } from 'vael-ui'

<Dock orientation="horizontal" :baseSize="48" :maxSize="76" :range="168" :disabled="false" magnify tooltips tooltipSide="top" :items="items">Dock</Dock>

Props

NameTypeDefaultDescription
itemsDockItemData[]
orientation"horizontal" | "vertical""horizontal"
baseSizenumber | undefined48Resting icon size, in px.
maxSizenumber | undefined76Icon size, in px, directly under the pointer.
rangenumber | undefinedFalloff distance in px; defaults to 3.5x `baseSize`.
disabledboolean | undefinedfalse
magnifyboolean | undefinedtrue`false` disables magnification but keeps interaction enabled; distinct from `disabled`.
tooltipsboolean | undefinedtrueRenders each item's `v-tooltip` on hover.
tooltipSide"top" | "right" | "bottom" | "left"undefinedWhich side each item's tooltip opens on. Default: `'top'` for horizontal, `'right'` for vertical.
uiPartial<{ root: UiPartValue; item: UiPartValue; }> | undefined

Slots

No slots.

Events

NameTypeDescription
select[item: DockItemData, index: number]

Exposed

NameTypeDescription
elHTMLElement | null
remeasure() => void