Skip to main content
  1. Docs
  2. Components
  3. Forms

Slider

A number, or a range, on a scale: where it lies matters more than its exact digits.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<input type="range">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

When to use

Use it for
  • A value where the position matters: a length, a share, a limit.
  • A range: a band of seats, of prices.
  • Quick changes you can see the effect of.
Not for

02

Anatomy

  1. 1slider-label<div>Names it; with showValue, the value sits at the header's end.
  2. 2slider-value<output>The value, formatted for the locale.
  3. 3slider-indicator<div>The Ember range on the 4px track.
  4. 4slider-thumb<div>The 16px square thumb, ringed in the surface colour.

03

Do and don't

Show the value
DoshowValue: the number as it moves.
Don'tA thumb with no number: where is it?
Exact numbers are typed
DoA credit limit to the rupee: a Number field.
Don'tA slider for an exact amount.

04

Content

  • Format the value: "8 hours", "₹2,50,000", "12%".
  • A description says what the range means.
  • Steps people can tell apart: 10 seats, not 1.
Next — SliderAPI