Fisheye Dock

Fisheye Dock

A macOS-style dock — icons swell under the cursor with a fisheye falloff, neighbours rising in sympathy, labels popping above on hover.

Installation

▸ Run the following command

npx shadcn@latest add https://www.mellowui.com/r/fisheye-dock.json

▸ Or install manually

  1. Install dependencies: pnpm add motion
  2. Copy the source from the Code tab above.
  3. Place it at components/mellow/fisheye-dock.tsx
  4. Import and use.

API Reference

PropTypeDefaultDescription
items{ icon: ReactNode; label: string; href?: string; onClick?: () => void; active?: boolean }[]Dock items — icon, tooltip label, link or click handler, active dot.
sizenumber44Resting icon size in px.
magnificationnumber76Icon size directly under the cursor in px.
distancenumber140Cursor influence radius in px — how far the fisheye reaches.
classNamestringAdditional CSS classes.