Tide42
Nudge the line until it hums — spring-settled, thumb and fill in quiet agreement — one gesture, no sharp edges.
Installation
npx shadcn@latest add @iconiq/sliderProps
Slider
8 props
Pointer-driven range control with optional controlled or uncontrolled value management.
value
numberControlled value. When provided, the parent owns the current position.
defaultValue
numberDefault
50Initial internal value used when value is not supplied.
min
numberDefault
0Lower bound used for clamping and display mapping.
max
numberDefault
100Upper bound used for clamping and display mapping.
step
numberDefault
1Step size applied after translating pointer position into a raw numeric value.
onChange
(value: number) => voidCalled whenever pointer interaction computes a new clamped value.
showValue
booleanDefault
trueControls whether the live numeric readout is shown on the right side of the label row.
label
stringOptional label shown on the left side of the header row above the track.
Notes
When value is undefined, the component stores the current value internally and updates it during drag operations.
The displayed number is derived from the animated motion value, so the readout stays in sync with the spring animation rather than jumping immediately.