Slider
Glow Slider
A range slider with a gradient fill, a thumb that grows a glowing halo while dragged and a value bubble that pops above it.
npx motionsnack add glow-sliderCustomize
<GlowSlider />Props
27 properties
| Property | Type | Default | Description |
|---|---|---|---|
| value | number | - | Value. With a value the component is controlled. |
| defaultValue | number | 60 | Value at the start when uncontrolled. |
| onChange | (value: number) => void | - | Called with every new value while dragging or using the keyboard. |
| onChangeEnd | (value: number) => void | - | Called once with the final value when a drag ends. |
| locale | string | 'en-US' | BCP 47 locale of the number format. |
| name | string | - | Field name: the value is submitted with a surrounding form. |
| id | string | useId() | Id of the slider; label and helper ids derive from it. |
| ariaLabel | string | - | Deprecated: use aria-label. |
| accent | string | - | Deprecated, ignored: the fill is monochrome; glow adds the aurora light. |
| accentTo | string | - | Deprecated, ignored. |
| trackHeight | number | - | Deprecated, ignored: the rail is 4px. |
| thumbSize | number | - | Deprecated, ignored: the thumb is 20px. |
| haloSize | number | - | Deprecated, ignored. |
| duration | number | - | Deprecated, ignored. |
| bounce | number | - | Deprecated, ignored. |
| className | string | '' | Extra classes on the root. |
| label | string | 'Volume' | Visible label above the track. An empty string hides it. |
| helperText | string | '' | Helper text under the track. Empty hides it. |
| unit | string | '%' | Text after the number. |
| min | number | 0 | Lowest value. |
| max | number | 100 | Highest value. |
| step | number | 1 | Distance between two values. |
| showValue | boolean | true | Show the value next to the label. |
| showBubble | boolean | false | Value bubble above the thumb while dragging. |
| ticks | number | 5 | Number of tick dots under the track. 0 hides them. |
| glow | boolean | false | Aurora light behind the fill and around the dragged thumb (decoration only). |
| disabled | boolean | false | Dims the slider and blocks interaction. |
About Glow Slider
Glow Slider is a range input with a track filled in a two-tone accent gradient up to the thumb. Grabbing the thumb springs a soft halo out around it and lights a glow, while the thumb itself keeps its size, so the control feels alive without wobbling. A small bubble with the current value pops up above the thumb during a drag or keyboard use and drops away on release. Optional tick marks under the track darken as the value passes them. Dragging uses pointer capture, so it keeps tracking outside the track, and the keyboard covers arrows, Page Up/Down, Home and End.
What's included
- Gradient-filled track with min, max and step
- Halo and glow that spring out while dragging
- Value bubble above the thumb
- Optional tick marks that follow the value
- Pointer capture drag, touch friendly
- Arrows, Page Up/Down, Home and End
- Controlled and uncontrolled value with onChange
- Type
- Animated React slider component
- Library
- Components · Slider
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-09-20
- Install
npx motionsnack add glow-slider