Forms
Slider
A draggable input for a numeric value. Built on Base UI, with the track filled to the current position.
Import
import { Slider } from "@mikenotthepope/substrateui"Custom Range
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
defaultValue | number[] | [0] | The default value of the slider when uncontrolled. |
min | number | 0 | The minimum allowed value. |
max | number | 100 | The maximum allowed value. |
step | number | 1 | The stepping interval between values. |
disabled | boolean | false | When true, prevents interaction with the slider. |