Wake Slider, animated React component
A thumbless range made of 56 thin bars. Drag across it and the bars you pass spring up in a wake behind the pointer, taller the faster you move, then ripple back down; the value is wherever the colour ends.
- Pro
- Inputs & Controls
- Spring
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Brightness40
Drag fast across the bars.
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| label | string | "Brightness" | Label above the bars; also the slider's accessible name. |
| defaultValue | number | 40 | Starting value, 0 to 100. |
| accent | string | "#ff9f0a" | Colour of the bars up to the current value. |
| onValueChange | (value: number) => void | undefined | Called with the rounded value whenever it changes. |
| autoplay | boolean | false | Sweeps back and forth by itself until the user drags or presses a key. |