OPUS/UI

Navigation

Dock

new

macOS dock magnification with transforms only — icons scale and neighbours shift to make room, the glass shelf widens with them.

pointertransform3 files · 160 locdeps: clsx, tailwind-merge

Installation

With the shadcn CLI, pointing at this platform’s registry:

npx shadcn@latest add https://opusui.131199999.xyz/r/dock.json

Or offline, straight from your opus55 checkout (copies every file it needs):

node ../tailwind_component/opus55/scripts/add.mjs dock

Usage

import { Dock } from "@/components/opus/effects/dock";

<Dock items={[{ id: "mail", label: "Mail", icon: <MailIcon />, onClick }]} />

API

PropTypeDefaultDescription
itemsDockItem[]—{ id, label, icon, onClick?, href?, active? }
sizenumber48Base icon size (px).
magnificationnumber1.8Peak scale.
distancenumber150Influence distance (px).

Command palette