Slider
Pointer-draggable and keyboard-navigable range slider with an optional analog mixer fader style.
Interactive Playground
Pointer-draggable and keyboard-accessible range slider with an analog mixer fader variant.
slider-playground.tsx
Output Level65%
Variant
Color
Size
Analog Fader Deck
Use the fader variant for hi-fi audio mixers, EQ controls, and tactile settings.
slider-fader.tsx
Master Gain78%
Warmth / Tube+62 dB
Vinyl Crackle24%
Quick Import
Example.tsxtsx
1import { Slider } from "@rekodo/react";2
3export function Example() {4 return <Slider variant="fader" label="Master Gain" defaultValue={75} showValue />;5}API Reference
Props accepted by this component.
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | undefined | Controlled numeric value. |
| defaultValue | number | 50 | Initial uncontrolled value. |
| min / max / step | number | 0 / 100 / 1 | Range bounds and step increment. |
| variant | "default" | "fader" | "tape" | "default" | Standard circular thumb, analog mixer fader cap, or sharp rectangular tape scrubber. |
| color | "violet" | "rose" | "amber" | "emerald" | "zinc" | "violet" | Track fill and thumb focus ring accent color. |
| size | "sm" | "default" | "lg" | "default" | Track thickness and thumb scale. |
| onValueChange | (value: number) => void | undefined | Fires when the slider value changes. |