Magicdock

A macOS-style dock with magnification effect and tooltip variants

Installation

pnpm dlx shadcn@latest add "https://vritti.thesatyajit.com/r/magicdock"

Dependencies

pnpm add motion

Props

Magicdock

PropTypeDefaultDescription
itemsDockItemData[]-Array of dock items to render
classNamestring""Additional CSS classes for the dock container
distancenumber150Mouse distance threshold for magnification effect in pixels
panelHeightnumber64Height of the dock panel in pixels
baseItemSizenumber50Default size of each dock item in pixels
dockHeightnumber256Maximum height of the dock when expanded in pixels
magnificationnumber70Maximum size of a dock item when magnified in pixels
springSpringOptions{ mass: 0.1, stiffness: 150, damping: 12 }Spring physics configuration for the magnification animation
variant"default" | "gradient" | "tooltip""default"Visual variant of the dock