Skip to content
SENVENLI UI

Slider

Picks a value or a range by dragging along a track, with locale-formatted output.
One value
import { Slider } from "@senvenli/react/selection";

Examples

A range

Two thumbs and a formatted output: a price filter.

Steps and a disabled slider

A coarse step with a unit, and a value that cannot change.

Sizes

`size` small, medium (default) or large: the thumb and the bar.

Guidelines

When to use it

  • An approximate value or range matters more than an exact number.

Use something else when

  • The exact number matters. Input

Accessibility

Keyboard

KeysWhat happens
Arrow keysMoves the thumb by a step.
Home, EndMoves to the minimum or maximum.

Built in

  • Each thumb is a slider with its value text.

You provide

  • A label.

API reference

Slider

labelRequired
React.ReactNode
description
React.ReactNode
size
ComponentSize

small, medium (default) or large; the provider default otherwise.

Also takes 81 standard DOM and ARIA attributes (id, aria-label, event handlers…).