Dock
Motion
Beautifully smooth Tailwind dock and Tailwind CSS macOS navigation components featuring spring-based icon magnification.
On this page
Deliver a familiar, premium navigation experience using a Tailwind dock. Inspired by desktop interfaces, this Tailwind CSS macOS navigation component utilizes advanced spring physics to smoothly magnify icons based on cursor proximity.
A dock is a visually impressive alternative to a standard Bottom Navigation bar, functioning perfectly as the primary interaction hub when grouped with elegant Header navigation.
Implementation
Usage
macOS Dock
Hover over the dock icons below
Props
Dock
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | DockItem components |
magnification | number | 60 | Max size of magnified item (px) |
distance | number | 140 | Cursor distance for magnification |
DockItem
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | Icon or content |
className | string | "" | Additional CSS classes |