Component packs › Fader › Bead Range
Beads on a steel wire: push the low bead into the high one and it carries it along, and the wooden beads get shoved aside and slide on.
Bead Range is a dual range from Fader, a component pack with 8 sliders: Eight sliders, each a real mechanism: a console fader, a radio dial, beads on a wire, a zipline. Price: $2 for the whole pack.
Built with: 1D bead physics, push, never pass, momentum.
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 |
|---|---|---|---|
value | [number, number] | [120, 340] | [low, high]. Default [120, 340]. |
min | number | ||
max | number | ||
step | number | ||
format | (v: number) => string | "$120" | Formats a value for the tags and screen readers. Default "$120". |
label | string | ||
disabled | boolean | ||
dark | boolean | ||
onChange | (value: [number, number]) => void | ||
autoplay | number | false | Showcase mode: moves to a new range every N ms while visible. |
readonly value: [number, number]setValue(value: [number, number], silent?: boolean): voiddestroy(): voidimport BeadRange from './BeadRange';
<BeadRange />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Sliders.