Skip to content
Browse docs and components

Dock

dock

A macOS-style row of icons that swell under the pointer on a spring, with their neighbours growing too. Labels show on hover and focus, open apps get a dot, and reduced motion keeps every icon at its resting size.

Responsive

Install

$npxshadcnadd@forme/dock

Adds the component, its registry dependencies, and the token stylesheet you import once.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

Dock

A row of icons that swell under the pointer, the way a macOS dock does.

PropTypeDefaultDescription
items*readonly DockItem[]—
label*string—Accessible name for the navigation.
sizenumber44Resting and magnified icon size in pixels.
magnifiednumber72
classNamestring—