← ui-lab

Range Slider

A two-thumb slider for selecting a span. Each thumb is its own slider with aria-valuenow/min/max, and the two are constrained so they can't cross — the low thumb's max tracks the high value and vice versa. Focus a thumb and use the Arrow keys (Home/End jump to its end of the allowed range).

Preview

20
80

Installation

npx shadcn@latest add https://ui.publictheta.com/r/range-slider.json

Conformance

This component conforms to the @publictheta/ui-spec range-slider specification. Run the suite against any implementation with pnpm conformance.