An interactive icon dock that smoothly scales icons/images on hover, providing a responsive and engaging visual effect.

Installation

pnpm dlx shadcn@latest add https://badtz-ui.com/r/dock.json

Usage

import { Dock, DockIcon } from "@/components/ui/dock";
<Dock> <DockIcon src="/images/components/dock/tailwindcss-logo.webp" name="TailwindCSS" href="#tailwindcss" /> <DockIcon name="Edge" src="/images/components/dock/edge-logo.webp" href="#linear" /> <DockIcon name="Motion" src="/images/components/dock/motion-logo.webp" href="#motion" /> ... </Dock>
<Dock className="[&_svg]:size-6"> <DockIcon name="Settings" href="#setings"> <SettingsIcon> </DockIcon> ... </Dock>

Props

Dock props.

DockIcon props.

Disclaimer

We are not affiliated with any of the brands whose logos are used in this component. These logos are displayed for demonstration purposes only.