Dock

New

Icons that swell as the pointer passes, like a desktop dock

$ npx @hritik-sharmaa/repeat-ui add commons-dock
Category
Commons
Added
Nov 1, 2026
Version
1.0.0
Packages
motion
Flavors
TS · JS · Tailwind · CSS
Live preview
Customize
48px
1.7×
140px
import CommonsDock from "@/components/repeat-ui/commons-dock/preview";

<CommonsDock items={items} />

Installation

  1. Run the command

    Adds the files and installs any packages they need. Works with npm, pnpm, yarn and bun.

    $ npx @hritik-sharmaa/repeat-ui add commons-dock --variant ts-tailwind
  2. Use it

    The files are in components/repeat-ui/commons-dock/.

    import CommonsDock from "@/components/repeat-ui/commons-dock/preview";
    
    export default function Page() {
      return <CommonsDock />;
    }

Props

PropTypeDefaultDescription
itemsDockItem[]-Tiles: { label, icon, onClick? }. Icons are sized to the tile; SVGs fill 46% of it.
baseSizenumber48Tile size at rest, in pixels.
magnificationnumber1.7How much the nearest tile grows.
distancenumber140How far the pointer's pull reaches, in pixels.
backgroundstring"rgba(23, 23, 23, 0.8)"Dock background.
tileColorstring"#262626"Tile background.
iconColorstring"#e5e5e5"Icon colour; SVG icons using currentColor follow it.
accentColorstring"#fa5f1b"Colour of the dot under the last clicked tile.
showLabelsbooleantrueShow a label above the hovered tile.
showIndicatorbooleantrueShow a dot under the last clicked tile.
classNamestring""Extra classes for the root element.

More commons

See all