shadcn.io is not affiliated with official shadcn/ui
Slider examples · Vertical
Vertical Range Slider for React
A vertical two-thumb slider with the selected range written under it.
Framework
UI library
A range picked top to bottom. Two thumbs on a vertical track, with the upper value over the lower one in the reading below. Use it beside a chart or a tall preview.
Preview
Installation
Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.
FAQ
How does the readout follow the thumb?
The value lives in state, starting at [30, 70], and goes back to the slider as value. The reading prints the higher value above the lower one.
onValueChange receives the new value, and the handler stores it as an array.
Related
- Volume Control Style SliderA vertical Volume slider with its label
- Basic Range SliderA two-thumb slider for picking a range
- Vertical with Labels SliderA vertical Level slider with a 0 to 100
- Price Range SliderA two-thumb price slider from $0 to $1000
- Height Selector SliderA vertical Height slider from 100 to 250
- Range with Value Display SliderA two-thumb slider with the selected