shadcn.io is not affiliated with official shadcn/ui
Framework
UI library
A word above the track says what the slider sets. The Volume label sits over a slider that starts at 30. Use it in settings forms where each slider needs a name.
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 is the slider named?
The Volume text is a visible Label, and the slider gets the same name with aria-label, so screen readers announce what it sets.
On Base UI, aria-label is one string on the slider.
How are the label and slider laid out?
A flex flex-col gap-2 column, w-full max-w-md. The label is first, so it sits above the track.
Related
- Simple SliderA single-thumb slider with no label or
- Slider with Value DisplayA Quality slider with its percentage
- Slider with Min/Max LabelsA Size slider with its minimum and
- Volume Control SliderA Volume slider with a speaker icon and
- Input with LabelA text input with a label above it
- Required LabelA label with a destructive asterisk that