Skip to content

Range

A value on a scale where the exact number matters less than the feel, such as text size or a price band. Pass an array for two thumbs.

  • Range

PreviewLink to the section Preview

Live in all three themes. Everything here is interactive.

Light theme, Range

10,000%

Scales the whole interface.

€800 – €2,400
40

Dark theme, Range

10,000%

Scales the whole interface.

€800 – €2,400
40

High contrast theme, Range

10,000%

Scales the whole interface.

€800 – €2,400
40

UsageLink to the section Usage

tsx
import { Range } from '@skribly/ui/forms'
tsx
<Range label="Text size" minValue={80} maxValue={160} step={10} defaultValue={100}
  formatOptions={{ style: 'unit', unit: 'percent' }} />

Every label is a prop, so the app passes its own words in its own language. See no built-in text.

AccessibilityLink to the section Accessibility

  • Arrow keys step, Page Up and Page Down jump, Home and End reach the ends.
  • The value is printed above the track and announced with its unit.
  • The 20px thumb has a 24px hit area; two-thumb ranges need thumbLabels.

This demo runs through axe in all three themes on every test run. See what the tests check.

Search this site

Arrows move through the results, Enter opens one, Esc closes. Ctrl K /