Dock

A floating toolbar after the macOS dock: Dock, DockItem and DockSeparator group icon actions on a frosted surface, and a highlight slides to whichever item is marked active. Items render as buttons or wrap links you supply.

Preview

Dock preview width

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @karaui/dock
@karaui not found? Add it to components.json
{
  "registries": {
    "@karaui": "https://karaui.kamisama-v0.my.id/r/{name}.json"
  }
}

@karaui is in shadcn's public registry directory, so the latest CLI needs no setup. On an older CLI, merge this into the existing file once and every @karaui/… install resolves.

API Reference

Dock

className?
string
—
size?
number

Size of each item in px.

44

DockItem

className?
string
—
onClick?
(() => void)

When set, the item renders as a <button>. Omit when children carry their own link or button.

—
active?
boolean
—
aria-label?
string
—

DockSeparator

className?
string
—

Updated