Shadcn Range Slider: 6 variants
A slider for picking a number or a range from a bounded scale. Pass a number for one thumb or `[from, to]` for two. It draws no heading or readout: build those beside it.
Pick one, then install only that one. Each card opens at full size with a phone, tablet and desktop width. The previews below are live.
1.Pill
The default bar with a pill thumb; one value or a range.
Best for: price filters and volume or brightness controls
Avoid if: you want visible steps or a bold, branded control
Install: npx shadcn@latest add https://avaraui.com/r/range-slider.json (a shared item; the docs section shows this look)
2.Dotted steps
A dot per step and a slim thumb that stays inside the range.
Best for: a few discrete quantities such as seats or guests
Avoid if: the scale is continuous with many values
Install: npx shadcn@latest add https://avaraui.com/r/range-slider.json (a shared item; the docs section shows this look)
3.Classic
Round thumbs, a tick per step and a value bubble on hover.
Best for: time or date range pickers that need readable ticks
Avoid if: you want a minimal bar with no ticks
Install: npx shadcn@latest add https://avaraui.com/r/range-slider.json (a shared item; the docs section shows this look)
4.Tile
A button-like tile that draws its label and value inside and slides as you drag.
Best for: settings panels with several labelled controls, such as colour channels
Avoid if: you need a range with two thumbs
Install: npx shadcn@latest add https://avaraui.com/r/range-slider.json (a shared item; the docs section shows this look)
5.Flight
A glowing bar with a plane at its tip and a readout on the right.
Best for: travel and booking pages, or a playful progress-like picker
Avoid if: you need two thumbs or a sober admin look
Install: npx shadcn@latest add https://avaraui.com/r/range-slider.json (a shared item; the docs section shows this look)
6.Circular dial
A ring dial with a gap between fill and track; children sit in the middle.
Best for: thermostat, volume or timer style controls with a central readout
Avoid if: space is a thin strip
Install: npx shadcn@latest add https://avaraui.com/r/range-slider.json (a shared item; the docs section shows this look)