Dock Menu

A macOS-style dock menu with magnification on hover.

npx arupui add dock-menu
Preview

Usage

dock-menu.tsx
import { DockMenu } from "@/components/blocks/dock-menu"

<DockMenu
  items={[
    { icon: <HomeIcon />, label: "Home", onClick: () => {} },
    { icon: <DocsIcon />, label: "Docs" },
  ]}
/>

Props

items
Type: DockMenuItem[]Default: -
magnification
Type: numberDefault: 56
distance
Type: numberDefault: 120
Theme Editor

Theme

Radius0.5rem
Letter Spacing0em

Colors

light