Component packs › Fulcrum › Lever Button

Lever Button

Hold the long arm down against a cast-iron block; it lifts slowly, fires when it reaches the mark and slams back if you let go early.

Lever Button is a hold to confirm from Fulcrum, a component pack with 6 balance controls: Controls that weigh things: beams tip, pans swing and mobiles rebalance. Price: $2 for the whole pack.

Built with: effort builds while held, slam and shudder, visible threshold.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Lever Button props

PropTypeDefaultDescription
labelstringCast on the block and used in the accessible name.
holdnumberHow long a full lift takes, in ms.
text{ idle?: string; lifting?: string; done?: string }Status lines: idle, lifting, done.
disabledboolean
onConfirm() => void
theme'light' | 'dark'
autoplaynumber | falseShowcase mode: lifts (sometimes not quite far enough) every N ms while visible.

Methods on the ref

Use it in React

import LeverButton from './LeverButton';

<LeverButton />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Fulcrum

Good for: Skeuomorphic UI.