Skip to content

Dock

A bar of icons that magnify under the cursor, on glass.

Plan
Free · MIT
Dependencies
React only
Props
8 (6 adjustable)

Free forever

MIT license, for personal and commercial projects. See installation

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
itemsDockItem[]"6 icons"Dock icons: { label, icon, colors?, active? }.
sizenumber46Base size of each icon, in px.
magnifynumber1.75How much the icon under the cursor grows (1 = no growth).
reachnumber110Distance, in px, within which the cursor still magnifies icons.
blurnumber1.5Blur of the background behind the glass, in px.
refractionnumber1Strength of the refraction at the dock's edge (0 = light isn't bent).
scenebooleanfalseDraws an animated color scene behind it (to see it refract).
onSelect(label: string) => void""Called when an icon is pressed.

Installation

Install it

1Install the package

npm i furin-ui

2Import it

import { Dock } from "furin-ui";

Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.

Dependencies

React
18 or later
Other libraries
none
License
MIT

Each file ships its own CSS: there's nothing else to install.

Keep exploring

  • A slider (role slider, full keyboard support) that stretches like rubber when dragged past its limits and snaps back with a bounce; the track squashes to preserve volume.

    Navigation

  • Accessible tabs whose selection is a blob of liquid: it stretches toward the new tab, thins at the neck and merges when it arrives.

    Navigation