React Slider

Range inputs the forms layer was missing: a single-thumb Slider and a dual-thumb RangeSlider for min/max windows. Both are pointer- and keyboard-driven (arrows step, Shift+arrow jumps a decade, Home/End snap to the ends) with full role="slider" ARIA, an optional value bubble while dragging, tick marks, and a mono readout. Drives pricing calculators, spec filters, and settings alike — the demo wires a seat count to a live price estimate.

Estimated: $390/yr

Ticks at each 10°.

400 MHz1200 MHz

400–1200 MHz

Installation

npx shadcn@latest add slider.json

Usage

Loading...

Props

PropTypeDefaultDescription
valuenumber / [number,number]Controlled value (Slider / RangeSlider)
onChangecallbackValue change
min/max/stepnumber0/100/1Range and increment
format(v: number) => stringReadout / bubble label
ticksbooleanfalseSlider tick marks (small ranges)