Skip to content

Slider

Allows users to choose a numeric value or range smoothly by sliding a handle along a horizontal track with immediate visual feedback.

2.9 KB
Updated on August 21, 2026

Installation

Bash

Usage

Code
Code

Anatomy

Code

Features

Range Slider

Multi-thumb range slider for selecting value intervals.

Vertical Orientation

Vertical slider orientation with orientation="vertical".

Disabled State

Slider rendered in a disabled state.

Accessibility

Keyboard Interactions

API Reference

Slider

Root component. Styled wrapper for Slider.Root from Base UI with default min/max values and edge-aligned thumbs.

Note: The component sets thumbAlignment="edge" by default, which aligns thumbs to the edge of the track rather than centering them.

SliderValue

Displays the current value. Styled wrapper for Slider.Value from Base UI.

Examples

Slider with label and value
Slider with reference labels
Slider with ticks
Slider with labels above
Slider with 3 thumbs
Range slider with collision behavior none
Range slider with collision behavior swap
Slider with icons
Slider with input
Range slider with inputs
Slider with increment and decrement buttons
Price range slider
Emoji rating slider
Vertical range slider
Vertical slider with input
Equalizer with vertical sliders
Object position sliders with reset
Price slider with histogram
Slider in form