Atelier UI

Search components…

Search components…

Slider

Single-thumb slider with pointer drag and keyboard control (arrows, PageUp/Down, Home/End), steps and disabled state.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

SliderProps

Also accepts all props of Omit<React.ComponentProps<"div">, "onChange" | "defaultValue">

PropTypeDefaultDescription
valuenumber——
defaultValuenumber0—
onValueChange(value: number) => void——
minnumber0—
maxnumber100—
stepnumber1—
disabledbooleanfalse—

Install

$ npx shadcn@latest add https://chromotion.dev/r/slider.json

More like this