A range slider with a glossy knob and a value bubble that lifts while you drag. Keyboard and touch work too.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | Controlled value. | |
| defaultValue | number | 0 | Initial value when uncontrolled. |
| onValueChange | (value: number) => void | Called with the new value whenever it changes. | |
| min | number | 0 | Smallest allowed value. |
| max | number | 100 | Largest allowed value. |
| step | number | 1 | Amount the value changes by per step. |
| disabled | boolean | Stops the user from changing the slider. | |
| showValue | boolean | true | Show the value bubble while dragging or focused. |
| formatValue | (value: number) => string | (v) => String(v) | Turns the value into the text shown in the bubble. |
| aria-label | string | Required: names the slider for screen readers. | |
| className | string | Extra classes added to the outer element. |