Component packs › Fader › Gradient Stops

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.

Gradient Stops props

PropTypeDefaultDescription
valueGradientStop[]deep indigo, the pack accent, amberDefault: deep indigo, the pack accent, amber.
anglenumber90Angle used in the CSS output. Default 90.
labelstring
disabledboolean
darkboolean
onChange(stops: GradientStop[], css: string) => voidThe stops (sorted) and the CSS linear-gradient for them.
autoplaynumber | falseShowcase mode: adds, moves and pulls off a stop, one step every N ms.

Methods on the ref

Use it in React

import GradientStops from './GradientStops';

<GradientStops />

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

More in Fader

Good for: Sliders.