Floating Dock

A macOS-style floating dock with smooth magnification, animated tooltips, and vertical/horizontal layout support.

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" },
  ]}
  direction="horizontal"
/>

Props

items
Type: DockItem[]Default: -
magnification
Type: numberDefault: 64
distance
Type: numberDefault: 140
direction
Type: "horizontal" | "vertical"Default: "horizontal"
Theme Editor

Theme

Radius0.5rem
Letter Spacing0em

Colors

light