Motion
Dock
Free, copy-pasteable Tailwind CSS & Framer Motion Dock component. Accessible, fully responsive, dark-mode ready, and customizable.
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
Motion preview
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 |