Floating dock preview

Floating dock

A macOS-style dock whose icons swell as the pointer passes.

  • Group
    Docks
  • Origin
    Inspired · Original (this library)
  • License
    MIT
  • Added
    Oct 18
npx shadcn@latest add @deank/floating-dock

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { FloatingDock } from "@/registry/components/floating-dock/floating-dock";

<FloatingDock items={[/* … */]} />

Props

PropTypeDefaultDescription
itemsDockItem[]
size?number40Resting icon size, px.
magnify?number64Icon size right under the pointer, px.
reach?number140How far the magnification reaches, px.
className?string

When to use

App-level navigation with a handful of icon destinations, macOS style.

When not to use

More than ~8 destinations, or text-heavy navigation (use nav-sidebar or tabs).

Related

Direction aware tabs · Segmented control · Seek bar