Component packs › Fader › Gradient Stops
Click the bar and a stop drops in with the colour under it; pull a stop down off its rail and it comes loose and falls away.
Gradient Stops is a multi-thumb slider 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: tear-off delete, drop-in add, CSS output.
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 | GradientStop[] | deep indigo, the pack accent, amber | Default: deep indigo, the pack accent, amber. |
angle | number | 90 | Angle used in the CSS output. Default 90. |
label | string | ||
disabled | boolean | ||
dark | boolean | ||
onChange | (stops: GradientStop[], css: string) => void | The stops (sorted) and the CSS linear-gradient for them. | |
autoplay | number | false | Showcase mode: adds, moves and pulls off a stop, one step every N ms. |
readonly value: GradientStop[]readonly css: stringsetValue(stops: GradientStop[], silent?: boolean): voiddestroy(): voidimport GradientStops from './GradientStops';
<GradientStops />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Sliders.