Floating Dock
Web (React)
A premium navigation dock with smooth Apple-style magnifying zoom animation on hover.
A premium floating dock navigation bar. Hovering over the icons enlarges them and their immediate neighbors dynamically using spring-based motion. Perfect for modern, app-like landing pages.
Installation
CLI
npx @modus-ui/cli add floating-dockManual
- Copy the code from the component tab.
- Create a file at
components/ui/floating-dock.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | FloatingDockItem[] | - | An array of navigation item objects containing title, icon, and optional href or onClick. |
direction | "top" | "bottom" | "bottom" | The alignment and expansion direction of the tooltips. |
className | string | - | Custom container styles. |
Comments