kipluo
Included in $29 packInteractionsReact + FlutterNavigationDashboards

React Interactive Dock – macOS-Style Magnification Toolbar

Interactive magnification dock component for React with Gaussian pointer falloff, spring scaling, roving keyboard focus, and spatial tick audio.

Live interactive demo · Hover across icons or drag one out.
Motion preview loop

Live vector preview rendered straight from the same 120 Hz spring engine—no heavy GIF compression artifacts, zero layout shift.

Customization playground

Tune outline, fill, accent, text colour, and shadow direction live above. The snippet updates automatically for copy-and-paste.

Customize

Colours
Shadow
<ResizableDock />

Installation

Install directly into your project source with the Kipluo CLI (React/Tailwind v4) or add the matching Flutter package.

Install

$ npx kipluo add resizable-dock

Working code example

resizable-dock.tsx
import { ResizableDock } from "@/components/kipluo/resizable-dock";

export function AppDock() {
  return (
    <ResizableDock
      items={[
        { id: "home", label: "Home" },
        { id: "search", label: "Search" },
        { id: "inbox", label: "Inbox" },
        { id: "settings", label: "Settings" },
      ]}
      onSelect={(id) => console.log("Open:", id)}
    />
  );
}

What Resizable Dock does

  • Computes continuous horizontal pointer distance across dock items using a smooth Gaussian bell curve so neighbors scale harmoniously.
  • Integrates each icon's target size through spring physics so entering, sweeping across, and leaving the dock feels fluid at 60–120 Hz.
  • Implements roving tabindex and ArrowLeft/ArrowRight navigation inside role='toolbar' for keyboard users.

Accessibility & sound behavior

Keyboard & screen readers: role="toolbar". Arrow Left / Right move focus and lift the active icon.

Reduced motion: Automatically respects prefers-reduced-motion: reduce by snapping spring targets immediately without jarring travel.

Sound cues: Pitched ticks as your pointer sweeps icons and a crisp pop when an icon poofs out. Disable per instance with sound={false} or globally via setSoundEnabled(false).

API reference

itemsDockItem[]
Dock items to display. Default 5 icons.
soundboolean
Plays this component's sounds. The global switch setSoundEnabled(false) silences every component. Default true.

Framework compatibility

Platform / ToolStatusDetails
React 18 & 19Full supportZero peer runtime lock-in beyond @kipluo/core.
Next.js App RouterFull supportShips with 'use client' boundaries; SSR-safe hydration.
Vite / Remix / AstroFull supportStandard ESM TypeScript source files you own.
Tailwind CSS v4 & shadcn/uiNativeInherits CSS variables and installs via shadcn registry or CLI.
Flutter (Dart)Native packageMatching spring physics, themes, and PCM audio in packages/flutter/kipluo.

Build it yourself: related tutorials

All tutorials →