Component packs › Fulcrum › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | Cast on the block and used in the accessible name. | |
hold | number | How long a full lift takes, in ms. | |
text | { idle?: string; lifting?: string; done?: string } | Status lines: idle, lifting, done. | |
disabled | boolean | ||
onConfirm | () => void | ||
theme | 'light' | 'dark' | ||
autoplay | number | false | Showcase mode: lifts (sometimes not quite far enough) every N ms while visible. |
confirm(): void: Plays a full lift and confirms.setDisabled(disabled: boolean): voiddestroy(): voidimport LeverButton from './LeverButton';
<LeverButton />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.