Components · Form Controls

Slider

Lets people pick a value from a range by dragging.

Automated a11y scan passing Element: <input type="range">

Component Workbench

Switch between the live interactive preview, syntax-highlighted implementation code, copyable AI coding agent prompt, and designer anatomy blueprint.

Slider · Canonical Spec
75%

When to use it

Do

  • Use it when the rough position matters more than the exact number.
  • Show the current value beside it.

Don't

  • Use it when an exact number matters. Use Input instead.
  • Use it for a huge range with tiny steps.

Accessibility & Keyboard Interaction

Requirements for using this component accessibly, following the W3C ARIA Authoring Practices Guide.

Interaction / KeyBehavior & Compliance Requirement
Arrow KeysIncrements or decrements by step value.
Home / EndJumps to min or max bound.

Tokens

Values update with the current theme.

RoleTokenCurrent value
Filled Track--as-semantic-color-interactive-primary
Unfilled Track--as-semantic-color-surface-muted
Esc
↑↓ navigateEnter openEsc close