deliver.ui

Magnetic Dock

A bottom dock whose icons grow under the pointer.

Installation

npm install motion lucide-react clsx tailwind-merge

Then copy the files from the Code tab into the same paths in your project, in TypeScript or JavaScript.

Props

PropTypeDefaultDescription
itemsNavItem[]-Links: label, href, optional icon and children.
baseSizenumber44Icon size at rest, in px.
magnificationnumber68Icon size right under the pointer, in px.
classNamestring-Extra classes for the outer element.