Skip to content
RivetUI

Slider

Selects one value or a bounded range along a continuous track.

@rivetui/slider

Preview

Explore each composition interactively, then open its code in the same context.

Single value

Combine a visible label and value with the native keyboard-accessible control.

CPU allocation
64%

Range

Two thumbs define a bounded interval while sharing one track and value readout.

Deployment window
24 – 72

Disabled

The selected value remains legible while pointer and keyboard interaction are unavailable.

Memory limit
38%

Registry

Installation

Add the component source and its declared dependencies with the shadcn CLI.

Install component
bunx --bun shadcn@latest add @rivetui/slider
Inspect registry item

Public interface

API reference

Component-specific props are listed here. Native element and Base UI props continue to pass through.

PropTypeDefault
valuenumber | readonly number[]—
defaultValuenumber | readonly number[]—
onValueChange(value, details) => void—
onValueCommitted(value, details) => void—
minnumber0
maxnumber100
stepnumber1
orientation"horizontal" | "vertical""horizontal"
disabledbooleanfalse
namestring—
Rivet UI / SliderComponents engineered, not decorated.