shadcn.io is not affiliated with official shadcn/ui
Slider examples · Vertical
Volume Control Style Slider for React
A vertical Volume slider with its label above and its percentage below.
Framework
UI library
A mixer-style fader. The vertical slider has its label above and the level below, all centered in one column. Use it in audio mixers or anywhere sliders stand side by side.
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 60, and goes back to the slider as value. The percentage under it prints it.
onValueChange receives the new value, and the handler stores it as an array.
How do I put several side by side?
Repeat the column in a flex gap-6 row, one per channel, each with its own state.
Related
- Height Selector SliderA vertical Height slider from 100 to 250
- Vertical with Labels SliderA vertical Level slider with a 0 to 100
- Volume Control SliderA Volume slider with a speaker icon and
- Vertical Range SliderA vertical two-thumb slider with the
- Slider with Value DisplayA Quality slider with its percentage
- Vertical with Indicators SliderA vertical Intensity slider that snaps in