Loading
Loading
Loading
mobile footer

Build the Interaction Layer Your Website is Missing.

Browse All EffectsBrowse All EffectsBrowse All EffectsUpgrade to ProUpgrade to ProUpgrade to Pro

80+ effects free, forever. No credit card.

© 2026 Hyperiux. All Rights Reserved.

AI Component CatalogueHey AI, Learn About Us
Platform

Vault

  • Documentation
  • Pricing
  • Blog
  • Community
  • NPM
  • MCP

Categories

  • All Effects
  • WebGL
  • Text
  • Backgrounds
  • Buttons
  • Carousels
  • Scroll
  • Components
  • Navigation
  • Cursor
  • Transitions
  • Loaders

Documents

  • Introduction
  • Installation
  • CLI
  • Dependencies
  • License

Legal

  • License Agreement
  • Terms of Service
  • Privacy Policy
  • Refund Policy
Socials
  • Twitter / X
  • LinkedIn
  • GitHub
  • Instagram
Contact Us
  • hello@hyperiux.com
New effects, in your inbox

Every new drop, plus the occasional behind-the-scenes build. No spam. Unsubscribe anytime.

Loading
Home/Slider Component

Slider Component

An animated slider with elastic track movement, spring-based value transitions, rolling numbers, and interactive controls for single values and ranges.

@base-ui/reactmotiontailwind-merge
DemoDemoDemo

Tune the Real Props

Overview

Slider uses spring motion so the fill and handle follow the chosen value and settle naturally. It supports single values and dual-thumb ranges, with optional value bubbles and rolling numbers so users see exactly what they picked.

Use it when users adjust a value within known limits and benefit from seeing its relative position, such as price filters, volume, temperature, or effect intensity. The spring gives it character, but accuracy always comes first.


Theme and Interaction Customisation

Set track roundness and thickness, rail value labels, dot or line step marks, and a bar, solid circle, outlined circle, or hidden thumb. Motion settings include spring duration and bounce, hover or drag thickening, elastic endpoint stretch, rolling numbers, and floating value bubbles.


Example Production Use Case

A coffee equipment store can offer a grind-size slider and a two-handle water-temperature range in its configurator. The bubble shows each value as customers drag, and the fill makes the chosen range obvious.

An ecommerce category page can use a dual-thumb price filter, with rolling numbers updating as shoppers narrow results.

A creative tool can use smooth-mode sliders for opacity and blur, with track thickening on hover making small adjustments easier to grab.


Best Used For

  • Product configuration with numeric preferences.
  • Ecommerce price and size filters.
  • Audio and media controls.
  • SaaS thresholds, percentages, and limits.
  • Creative tool values like opacity and spacing.
  • Smart-device temperature and brightness.
  • Interactive calculators.

Not For

For a few unrelated options that don’t form a scale, use Radio or Dropdown Menu.

When users need an exact value, such as money or measurements, pair the slider with a numeric input or use the input alone.

Avoid it when the scale is unclear, and never let moving a handle trigger an irreversible action without confirmation.


Performance Budget

Keep dragging responsive, animate the fill and thumb with efficient properties, and never delay the real value behind the spring. Avoid app-wide re-renders on change, and separate instant slider feedback from expensive calculations that depend on the value.


Accessibility and Mobile

Use native range semantics with a label, min, max, current value, and arrow-key support, giving each range handle its own name. On mobile, keep handles easy to grab and separate, don’t let stretch fight page scroll, and state units in text. With reduced motion, remove overshoot, stretching, and rolling numbers.


Common Mistakes

  • Letting the fill or thumb drift from the actual value.
  • Allowing elastic stretch to produce out-of-range values.
  • Choosing smooth or stepped mode without considering precision needs.
  • Making range handles hard to tell apart.
  • Hiding the exact value.
  • Using horizontal-only or thumb-specific effects where they don’t apply.
  • Using excessive spring bounce.
  • Making dragging the only way to change values.

Changelog

v1.0.0

Oct 23, 2026
Initial release

API Reference

PropTypeDefaultDescription
themestringcaffeineColour palette. The fill, the handle and the value bubble take its primary colour.
modestringdarkLight or dark version of the palette. Starts dark.
smoothbooleanfalseThe thumb moves in fine steps while dragging instead of jumping from step to step.
durationnumber0.35How long the fill takes to catch up when you click the track, in seconds.
bouncenumber0.35Springiness of the fill catching up. 0 means no overshoot.
thickenOnstringhoverWhen the track grows thicker.
elasticbooleantrueThe track stretches when you drag past either end, then springs back.
stretchAmountnumber10How far the track stretches past its ends, in percent of the track width. Needs Elastic on.
labelsstringrailShows the current value and the maximum on the rail.
thickenedSizestring13Track thickness while thickened, in Tailwind spacing units. Not used when Thicken on is Never.
roundedstringmdCorner radius of the track and fill.
marksstringdotsMarks drawn at each step along the track.
showEdgebooleantrueShows a handle at the end of the fill.
edgePressstringshrinkWhat the handle does while you drag it. Needs Show edge on.
edgeVariantstringbarShape of the handle. Needs Show edge on.
bubblestringhoverWhen a bubble with the current value shows above the handle.
rollingNumbersbooleantrueNumbers in the bubble, on the rail and in the readouts roll to the new value.
edgeSizestringsmSize of the handle. Needs Show edge on.

Questions, Answered.

What is Slider?

Slider is an animated React component for selecting a value or range on an interactive track, with spring movement, elastic feedback, configurable handles, and animated value labels.

Does Slider support selecting a range?

Yes. Two handles define lower and upper bounds, each moving independently, with the fill showing the interval.

What is the Elastic interaction?

Elastic lets a horizontal track stretch visually past its ends before snapping back. Stretch amount sets how far, as a percentage of width.

Can Slider move smoothly without snapping to steps?

Yes. Smooth mode moves freely, rounding to one decimal place and using 0.1 increments for keyboard adjustment.

Does Slider display the selected value?

Yes. Values can show on the rail or in a floating bubble that appears on hover or drag, stays visible, or is hidden.

Is Slider accessible?

It can be, with correct slider semantics, keyboard operation, clear values, visible focus, and separately labelled handles in range mode.

View MoreView More

Request a Custom Animation

Need a custom effect? Tell us what to create.

Related Effects

Explore All EffectsExplore All EffectsExplore All Effects
Table Component
@base-ui/reactclass-variance-authoritygsap

Table Component

Components

Attachment Component
@base-ui/react@gsap/reactclass-variance-authority

Attachment Component

Components

Hover Card Component
@base-ui/reactclass-variance-authoritylucide-react

Hover Card Component

Components

All Effects
Featured ComponentsText AnimationsAnimated BackgroundsAnimated ButtonsCarousel EffectsScroll EffectsCreative ComponentsNavigationsCursor EffectsTransitionsLoadersWebGL & 3D Effects
Templates
IntroductionInstallationCLIDependenciesLicense
PricingBlogGithubNPMMCP Doc