SShinUI

Dock

macOS dock magnification. The scale falloff uses a cosine curve rather than a linear ramp, which is what makes neighbouring icons swell smoothly instead of stepping.

dockmacosmagnificationnavigation

Usage

Drop the file into your project and import it. There is no package to install.

usage.tsx
import { Dock } from "@/registry/components/dock";

export function Example() {
  return <Dock />;
}

Install prerequisites

Every component here relies only on Tailwind and the cn helper from shadcn/ui.

terminal
npm i clsx tailwind-merge lucide-react

More in Mobile