Skip to content

Dock

A row of drawn icon tiles that swell toward the pointer: each tile rides its own spring toward a cosine falloff of its distance from the hand, so the row grows around it and settles back when it leaves.

$149 once · every Pro piece

Customize

The label rises above the largest tile, open items carry a small accent point, and a click hops the tile under a little gravity. Arrow keys walk the row and keyboard focus swells it the same way.

Install

npx shadcn@latest add @obsyde/dock

Needs your licence key · Get Pro

Usage

Import it from where the CLI puts it, or copy the files below by hand.

import { Dock } from '@/components/obsyde/ember/dock/Dock';

export function Example() {
  return (
    <Dock />
  );
}

Files

What you get with Pro: plain React, TypeScript and CSS, with no dependencies.

  • ember/dock/Dock.tsxcomponent
  • ember/dock/dock.cssstyles
  • ember/dock/DockDemo.tsxdemo
  • ember/kit2-kit/kit.tsshared
  • ember/shared/spring.tsshared
  • ember/shared/accent.tsshared
  • ember/shared/ember.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
countTilesnumber7
sizeTile sizenumber48
magnifyMagnifynumber1.75
rangeRangenumber140
labelsLabelsbooleantrue