GitHubnpm

Accent theme

Base radius

GitHubnpm

Accent theme

Base radius

Colour scheme

Docs menu

Guides


Primitives
Forms
Layout
Feedback
Overlays
Navigation
Data Display
AI

Slider

A real <input type="range">. Dragging, arrow-key stepping, Page Up/Down, Home/End, and touch all come from the browser. The filled portion of the track has no standardised styling API yet, so the fill percentage is computed in JavaScript and fed back in as a CSS custom property, that hand-off is the only JavaScript involved.

40

Playground

Toggle every adjustable prop and watch the component — and the code — update live.

50
Unstyled

Same component — Kernel look stripped. See Platforms.

showValue
hide label
Usage
<Slider label="Volume" defaultValue={50} showValue />

Props

Props for Slider.
PropTypeDefault
labelReactNode (required)
hideLabelbooleanfalse
value / defaultValuenumber0
min / max / stepnumber0 / 100 / 1
showValuebooleanfalse