Toggle Sidebar B
AppearanceLight & dark mode D

Elastic Slider

Slider handle stretches elastically then snaps with spring physics.

Default

Drag the track, then pull past either end. Every prop is wired to the controls underneath.

Dark previewReplay previewOpen in new tab

50

Customize

Default Value50
Starting Value0
Max Value100
Step Size10

API Reference

ElasticSlider

PropTypeDefaultDescription
defaultValuenumber50The initial value of the slider. It can be less than startingValue or greater than maxValue.
startingValuenumber0The starting point for the slider's range, e.g., startingValue=100 allows the slider to start at 100.
maxValuenumber100The maximum value the slider can reach.
isSteppedbooleanfalseEnables or disables stepped increments on the slider.
stepSizenumber1The size of the increments for the slider when isStepped is enabled.
SlotDescription
left-iconContent displayed on the left side of the slider. Defaults to a volume-low icon.
right-iconContent displayed on the right side of the slider. Defaults to a volume-high icon.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • The slider is pointer-only and exposes no slider role. Use it for decorative or secondary controls, and pair it with a standard input where keyboard access is required.