0
Components
API reference

Slider

Material 3 expressive slider with single or range thumbs, ticks, value indicator tooltips, icons, and six track sizes.

Installation

Usage

Examples

Range

Steps & Ticks

With Icons

Expressive Large

Vertical

API Reference

Slider

Wraps Base UI Slider.Root along with its control, track, indicator, and thumbs.

PropTypeDefaultDescription
valuenumber | readonly number[]-Controlled value or range tuple
defaultValuenumber | readonly number[]-Initial uncontrolled value or range tuple
onValueChange(value, eventDetails) => void-Callback fired when the slider value changes
minnumber0Minimum allowed value
maxnumber100Maximum allowed value
stepnumber1Increment granularity for discrete stepping
size"xs" | "default" | "sm" | "md" | "lg" | "xl""default"Track thickness and handle proportions
orientation"horizontal" | "vertical""horizontal"Slider axis orientation
showValueIndicatorbooleanfalseShows a floating value pill while dragging or focused
showTicksbooleanfalseRenders step tick dots along the track (up to 50 steps)
startIconReact.ReactNode-Leading icon beside the track
endIconReact.ReactNode-Trailing icon beside the track
getThumbAriaLabel(index: number) => string-Accessible label generator for each thumb
disabledbooleanfalseDisables pointer and keyboard interaction

SliderValue

Renders the formatted current value(s) from Base UI Slider.Value. Accepts a custom render function children?: (formattedValues, values) => React.ReactNode.

© taut ui — built with Base UI and Tailwind CSS v4.