Skip to content
Menu

Inputs

Elastic tug slider

Elastic tug slider: A slider that stretches like an elastic band when dragged past its ends, snapping the track back with a bounce once released.

Using Elastic tug slider

Elastic tug slider uses the inline preview frame with a light/dark theme setting.

Customize the preview

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

ControlTypeDefaultPreview limits
valuenumber50From 0 to 100; step 1
steppedbooleanfalseNo additional limit in the metadata.
accentcolor#F5C542No additional limit in the metadata.
Which frameworks are available for Elastic tug slider?

Elastic tug slider is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

What does Elastic tug slider depend on?

The React metadata lists these npm dependencies beyond React: motion.

What accessibility details are visible in Elastic tug slider?

The React source for Elastic tug slider includes: attributes and handlers (aria-hidden, aria-label, aria-valuemax, aria-valuemin, aria-valuenow, onKeyDown, tabIndex); explicit roles (slider); key comparisons (ArrowDown, ArrowLeft, ArrowRight, ArrowUp, End, Home, PageDown, PageUp). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Elastic tug slider handle reduced motion?

Elastic tug slider reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: reduced ? { stiffness: 700, damping: 44 } : { stiffness: 240, damping: 13 }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components