Skip to content
caliper ui pro docs

Range slider

A two-handle slider for choosing a range of values.

Pro

Budget

20 – 70

$20k to $70k · 132 studios match

When to use

  • Budgets, price filters and date spans where both ends are adjustable.
  • Keyboard users need fine control with arrow keys.

When not to use

  • One value only; use a slider.
  • Exact values matter; pair it with number fields.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/range-slider

Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

RangeSlider

10 props
PropTypeDefaultDescription
label *string—
minnumber0
maxnumber100
stepnumber1
valuereadonly [number, number]—
defaultValuereadonly [number, number]—
onValueChange((value: [number, number]) => void)—
namestring—
format((value: number) => string)StringHow values are written in the readout, e.g. as money.
classNamestring—

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It is built on native elements and keeps aria-hidden, aria-label and aria-valuetext in step with state.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/range-slider.md

The index of every part is at /llms.txt.

More in Slider and refresh