Skip to content

Slider

Value selection with glass thumbs that swell into magnifying capsules while held — the track bends through them — then spring back on release. Multiple values render multiple thumbs.

Install

$ pnpm dlx shadcn@latest add https://vitrumui.vercel.app/r/slider.json

Examples

Default

API

<Slider />

PropTypeDefaultDescription
valuenumber[]Controlled values; one thumb per entry.
defaultValuenumber[][min]Uncontrolled initial values.
minnumber0Lower bound.
maxnumber100Upper bound.
stepnumber1Increment.