Skip to content

Spirit Level

A slider shaped like a spirit level: the bubble follows the value with physics and the body tilts like a real level.

Plan
Pro · commercial license
Dependencies
React only
Props
12 (11 adjustable)

Included in Pro and Lifetime. See pricing

Level50%
050100
FURIN · LEVEL

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

Props

PropTypeDefaultDescription
valuenumber | undefined"auto"Controlled value; if omitted, the component keeps its own value.
defaultValuenumber50Initial value when uncontrolled.
onChange(value: number) => voidundefinedCalled every time the value changes.
minnumber0Minimum value.
maxnumber100Maximum value.
stepnumber1Keyboard and drag step.
labelstring"Level"Name of the control (also for screen readers).
unitstring""Unit shown next to the value.
tiltnumber2.4Maximum tilt of the body, in degrees.
autoplaybooleanfalseThe bubble wanders on its own until someone touches it.
disabledbooleanfalseDisables the control.
badgestring"FURIN · LEVEL"Text engraved on the plate of the level's body.

Installation

With your license

1Set up the Pro registry once

Pro components aren't on npm or in the public shadcn registry: you install them with your license from Furin's private registry.

Use my license

2Install Spirit Level

npx shadcn@latest add @furin-pro/spirit-level

Dependencies

React
18 or later
Other libraries
none
License
commercial

Pro components install into your project: the code is yours and there's nothing else to download.

Keep exploring

  • A stained-glass window whose pieces light up with the cursor's light and cast their color onto the floor.

    Glass

  • Plastic bubbles that dent as you pass over them and pop on click with sound; popped ones stay wrinkled.

    Glass

  • A glass card covered in condensation: droplets merge and run down, leaving trails, as you tilt it.

    Glass