Floating Dock
A macOS-style dock with smooth hover animations, spring physics, and responsive mobile/desktop variants. Perfect for app navigation.
Preview
Installation
Use the CLI to add this component to your project.
Usage
tsx
13 linesCopy
Examples
Custom positioning
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | { title: string; icon: ReactNode; href: string }[] | - | Array of dock items — each with a label, icon, and link. |
desktopClassName | string | undefined | Additional class names applied to the desktop (horizontal) dock. |
mobileClassName | string | undefined | Additional class names applied to the mobile (expandable) dock. |