Components

Dock

macOS-style magnification: icons swell as the pointer passes over, neighbours rising along a curve.

Paste it into ChatGPT, Claude, Cursor or v0.
size48
magnification1.75
distance150

Usage

React
import { Dock } from '@vizzele/react';

<Dock
  items={[
    { label: 'Home', icon: <HomeIcon />, href: '/', active: true },
    { label: 'Search', icon: <SearchIcon />, onClick: openSearch },
  ]}
/>

Props

PropTypeDefaultDescription
itemsDockItem[]—{ label, icon, href? | onClick?, active? }
sizenumber48Resting size (px).
magnificationnumber1.75Peak scale.
distancenumber150How far the swell spreads (px).

Accessibility

  • Each item is a link or button with an accessible name; keyboard focus magnifies it too.
  • Touch: magnifies while you drag your finger along it.