Installation
Run the following command
npx shadcn@latest add @aceternity/floating-dock
Props
Floating Dock
Prop Name | Type | Description |
---|---|---|
items | { title: string; icon: React.ReactNode; href: string }[] | Array of items to display in the dock. |
desktopClassName | string | Optional class name for the desktop dock. |
mobileClassName | string | Optional class name for the mobile dock. |
Floating Dock Mobile
Prop Name | Type | Description |
---|---|---|
items | { title: string; icon: React.ReactNode; href: string }[] | Array of items to display in the mobile dock. |
className | string | Optional class name for the mobile dock. |
Floating Dock Desktop
Prop Name | Type | Description |
---|---|---|
items | { title: string; icon: React.ReactNode; href: string }[] | Array of items to display in the desktop dock. |
className | string | Optional class name for the desktop dock. |
IconContainer Component
Prop Name | Type | Description |
---|---|---|
mouseX | MotionValue | Motion value for the mouse X position. |
title | string | Title of the item. |
icon | React.ReactNode | Icon to display for the item. |
href | string | URL to navigate to when the item is clicked. |
This component is inspired by floating dock on menu on Rauno's website and it's implementation on Build UI.
Build websites faster and 10x better than your competitors with
Aceternity UI Pro
Next.js 15, Tailwind CSS v4 and Motion for react powered templates
70+ templates and component blocks combined
Ready to copy paste component blocks, save days of development time

