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

Playground

Every prop, live, and the code it takes.

Seats
120
seats.tsx
import { Slider } from "@qeetrix/react";

<Slider
  label="Seats"
  min={0}
  max={500}
  step={10}
  defaultValue={120}
  showValue
/>

02

A value

A number on a scale, with its value shown, formatted for the locale.

Session length
8 hours

03

A range

An array value: a thumb for each, named after the label ("Seats, minimum").

Seats
50 – 250

04

Money and per cent

format takes Intl's options: rupees in lakhs, a percentage.

Credit limit
₹2,50,000
Discount
12%

05

Description and error

On its own it's a field: a description, and an error that replaces it.

Password length
12

Twelve or more is recommended.

Password length
8
Acme's policy needs at least 12.
Next — SliderUsage