DocumentationDock

Glass Dock

A macOS-style dock with glassmorphism effect, smooth magnification animations, and morphing SVG icons.

Install using CLI

npx shadcn@latest add "https://obsidianui.dev/r/glass-dock.json"

Install Manually

1

Install dependencies

npm install framer-motion gsap lucide-react clsx tailwind-merge
2

Copy the source code

Copy into components/ui/glass-dock.tsx

Props

Prop NameTypeDefaultDescription
itemsDockItem[]RequiredArray of dock items with title, icon, and optional onClick/href
dockClassNamestring-Additional class for the dock container