Installation
Run the following command
npx shadcn@latest add https://ui.aceternity.com/registry/floating-dock.json
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
With the best in class components and templates, stand out from the crowd and get more attention to your website. Trusted by founders and entrepreneurs from all over the world.
Manu was such a pleasure to work with. Talented, communicative and fast. Highly recommend!
Jonathan Barshop
Founder at Barshop Studios