Slider

Continuous value selection along a track.

Installation

Add this item from the registry, or import it from the package after installing Default File UI.

Registry path

itsvigneshv/default-file-ui/slider

Package import

import { Slider } from "@default-file/ui/components/df-slider"

Default

Single value on a 0 to 100 track.

Custom step

Bounded range with half-step increments.

Disabled

Non-interactive track.

Properties

Continuous value selection along a track.

Slider

PropTypeDefaultNotes
minnumber0Minimum value.
maxnumber100Maximum value.
stepnumber1Increment between values.
valuenumber[]Controlled value as an array (single thumb uses one entry).
defaultValuenumber[][min]Uncontrolled initial value.
onValueChange(value: number[]) => voidCalled when the value changes.
disabledbooleanNon-interactive slider.
classNamestringAdditional styles on the root.