Skip to content
Premium & Brand

Dock

A macOS-style icon dock that magnifies items as the pointer nears.

Import

tsx
import { Dock } from "@cooud-ui/ui";
bash
npx cooud-ui add dock

Examples

API Reference

Generated from the component's exported types.

DockProps

Extends HTMLAttributes<HTMLDivElement>

PropTypeDefaultDescription
items*
DockItem[]The dock entries, left to right.
magnification
numberDEFAULT_MAGNIFICATIONPeak scale an item reaches at the pointer's center. Defaults to `1.6`.
baseItemSize
numberDEFAULT_BASE_ITEM_SIZEResting item size in pixels. Defaults to `44`.
distance
numberDEFAULT_DISTANCEPointer influence radius in pixels — how far the magnify reaches. Defaults to `120`.