Floating Dock

A macOS-style floating dock with magnification effect on hover.

npx arupui add floating-dock
Preview

Usage

floating-dock.tsx
import { FloatingDock } from "@/components/blocks/floating-dock"

<FloatingDock
  items={[
    { icon: <HomeIcon />, label: "Home", href: "/" },
    { icon: <DocsIcon />, label: "Docs", href: "/docs" },
  ]}
/>

Props

items
Type: DockItem[]Default: -
magnification
Type: numberDefault: 60
distance
Type: numberDefault: 140
Theme Editor

Theme

Radius0.5rem
Letter Spacing0em

Colors

light