Range Slider
Includes designs by Avinit
Inline Slider
RangeSlider.vueInstall
Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide
Download the release archive to your project root, then install the local file.
Import the shared styles once in your application.
API Reference
step?numberRounds snap-stop values. While dragging, the readout keeps this step's decimal precision.
1label?stringCompact label inside the left edge of the track.
—format?(value: number) => stringFormats the inline value without changing its precision.
—showTicks?booleanShow markers for the ten evenly spaced snap stops, except where they overlap inline text.
trueclass?string—v-model?number—defaultValue?number0min?number0max?number100disabled?boolean—aria-label?string—formatValueText?(value: number) => stringAnnounced instead of the raw number — pass one when the value carries a unit or a suffix ("72.5 kg", "35%"); a bare number needs no valueText.
—variant?RangeStylestandardariaLabel?stringAccessible name. Falls back to `label`, then "Value".
—bars?number32majorEvery?number5gap?number14unit?string—@value-change?(value: number) => void—Updated