Dock
Documentation Index
Fetch the complete documentation index at: /llms.txt. Use this file to discover all available pages before exploring further.
A compact action dock with a shared animated active indicator.
dock-demo
Overview
Dock groups a small set of high-frequency destinations or actions. The active pill moves between items using shared-layout motion while item dimensions remain stable.
Installation
Usage
import { Dock, DockItem, DockSeparator } from "@/components/animated/dock"
<Dock>
<DockItem active onClick={openHome} aria-label="Home"><Home /></DockItem>
<DockSeparator />
<DockItem onClick={openSettings} aria-label="Settings"><Settings /></DockItem>
</Dock>Accessibility
Items with onClick render as buttons and expose aria-pressed for the active state. Icon-only items require an aria-label. Keep the dock to a short, recognizable action set.