Dock
dockA 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.
"use client";
import { Calendar, Camera, FolderOpen, Mail, Music, Settings, SquareTerminal } from "lucide-react";
import { useState } from "react";
import { Dock } from "@/components/forme/dock/dock";
const apps = [
{ label: "Finder", icon: <FolderOpen /> },
{ label: "Mail", icon: <Mail /> },
{ label: "Calendar", icon: <Calendar /> },
{ label: "Music", icon: <Music /> },
{ label: "Photos", icon: <Camera /> },
{ label: "Terminal", icon: <SquareTerminal /> },
{ label: "Settings", icon: <Settings /> },
];
export function DockDemo() {
const [open, setOpen] = useState<string[]>(["Finder", "Music"]);
return (
<div className="flex w-full flex-col items-center gap-4 pt-10">
<Dock
label="Applications"
items={apps.map((app) => ({
...app,
active: open.includes(app.label),
onClick: () =>
setOpen((current) =>
current.includes(app.label)
? current.filter((name) => name !== app.label)
: [...current, app.label],
),
}))}
/>
<p className="text-caption-1-regular text-muted-foreground">
Hover along the row. Click an app to open or quit it.
</p>
</div>
);
}Install
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.
| Prop | Type | Default | Description |
|---|---|---|---|
items* | readonly DockItem[] | — | |
label* | string | — | Accessible name for the navigation. |
size | number | 44 | Resting and magnified icon size in pixels. |
magnified | number | 72 | |
className | string | — |
Related


Breadcrumb
Where a page sits in the hierarchy, as a labelled nav with an ordered list and the current page marked. Separators are drawn in CSS, so a screen reader hears the path and not the slashes.
navigation

Command menu
A command palette opened with ⌘K or Ctrl K, with a search field, grouped items, keyword matching and an empty state. Built on cmdk for the filtering and the keyboard path, inside a Radix dialog for the focus trap.
navigation

Pagination
Page links rendered on the server, with the ends always reachable and a gap only where it hides more than one page. Previous and next hold their place on the first and last page, so nothing shifts as you click through.
navigation