Slider
Single-value or two-thumb range slider (wraps Base UI Slider).
Basic
Range
Pass a two-number defaultValue for a dual-thumb range.
Min / max / step
Constrain the range and snap to a step.
Sizes
- size accepts sm | md (default) | lg, scaling both the track and thumb.
Tones
tone recolors the filled track and thumb with the decorative palette.
API reference
Accessible name when there is no visible `label`. Applied to the focusable `role="slider"` thumb(s), not the group; range thumbs share it, so use `getAriaLabel` to tell them apart.
Points at an existing visible label's id, as an alternative to `aria-label`. Names every thumb.
CSS class applied to the element, or a function that returns a class based on the component's state.
Per-thumb accessible name by index, e.g. `(index) => (index === 0 ? "Minimum price" : "Maximum price")`. Overrides `aria-label`.
Text above the track. Also the control's accessible name.
Shows the current numeric value next to the label.
Track thickness and thumb size. Default "md".
Color of the filled track. Default "default".
Also accepts everything from React.ComponentPropsWithoutRef<typeof import("@base-ui/react/slider").Slider.Root>.
Coding agents read this reference, with its examples, from the version your project has installed, through the Fuji UI MCP server. Set up your agent
