Skip to content
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

PropTypeDefaultDescription
defaultValuenumber[][0]The default value of the slider when uncontrolled.
minnumber0The minimum allowed value.
maxnumber100The maximum allowed value.
stepnumber1The stepping interval between values.
disabledbooleanfalseWhen true, prevents interaction with the slider.