uibrik

Elastic Slider

Preview

Customize

Start value40
Min0
Max100
Width320px

Usage

import { ElasticSlider } from "@/components/uibrik/elastic-slider/elastic-slider";

<ElasticSlider />

Installation

npx shadcn@latest add https://uibrik.com/r/elastic-slider.json
Adds the files to components/uibrik/elastic-slider and installs @number-flow/react and motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/elastic-slider.

Props

ElasticSlider
label
Type string
"Elastic Slider"
defaultValue
Type number
40
Starting value.
min
Type number
0
Lowest value.
max
Type number
100
Highest value.
width
Type number
320
Track width.
onChange
Type (value: number) => void
–
Called as the value changes.