Forms/Slider

Slider

A single-value range input with a colored fill track and live value display. Fully accessible via keyboard.

import { Slider } from "@animui/ui"

Basic

40

Steps and formatting

350

Disabled

60

Props

PropTypeDefaultDescription
valuenumberControlled value.
defaultValuenumber0Uncontrolled initial value.
minnumber0Minimum value.
maxnumber100Maximum value.
stepnumber1Value increment per tick.
onChange(value: number) => voidCalled on value change.
labelstringLabel shown above the track.
showValuebooleantrueShow the current value next to the label.
disabledbooleanfalseDisable the slider.
classNamestringAdditional classes for the wrapper element.

Accessibility

  • Built on a native <input type="range">, so it inherits standard keyboard and screen reader support.
  • Adjustable with arrow keys, Home, and End when focused.
  • The label is rendered as a visible <label> above the track.
© 2026 Steal Shadow. MIT License.Report an issue