Toggle Sidebar B
AppearanceLight & dark mode D

Dock

macOS style magnifying dock with proximity scaling of icons.

Default

Move the pointer across the dock. Every prop is wired to the controls underneath.

Light previewReplay previewOpen in new tab

Try it out!

Customize

Background Height68
Item Size50
Magnification70

API Reference

Dock

PropTypeDefaultDescription
itemsDockItemData[][]Array of dock items. Each item takes an Iconify icon name, a label, an onClick handler, and an optional className. Use the icon-<index> slot for custom icon markup.
distancenumber200Pixel distance used to calculate the magnification effect based on mouse proximity.
panelHeightnumber68Height (in pixels) of the dock panel.
baseItemSizenumber50The base size (in pixels) for each dock item.
dockHeightnumber256Maximum height (in pixels) of the dock container.
magnificationnumber70The magnified size (in pixels) applied to a dock item when hovered.
springSpringOptions{ mass: 0.1, stiffness: 150, damping: 12 }Configuration options for the spring animation.

Accessibility

Keyboard shortcuts and ARIA behavior.

Shortcut Description
TabMove focus between dock items. The focused item shows its label.
Enter + SpaceActivate the focused item.
  • The dock is a toolbar and every item is a button labelled with its label.