Skip to content
Navigation

DockSphere

A dock of glossy spheres. Spheres near the pointer swell and the rest stay small; keyboard focus swells them too. Each shows its name on hover.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
items{ label, href, icon, color? }[]—The links. icon = an svg; color = sphere colour.
sizenumber44Resting sphere size in pixels.
magnifynumber1.7Size under the pointer, as a multiple of size.
reachnumber140Pixels from the pointer where spheres start to grow.
onSelect(item, e) => void—Click handler. Call e.preventDefault() to stay on the page.
labelstring"Dock"Name read out by screen readers.
classNamestringglass trayReplaces the tray look.