Skip to content

Elastic Slider

A slider (role slider, full keyboard support) that stretches like rubber when dragged past its limits and snaps back with a bounce; the track squashes to preserve volume.

Plan
Free · MIT
Dependencies
React only
Props
14 (12 adjustable)

Free forever

MIT license, for personal and commercial projects. See installation

Brightness

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
minnumber0Minimum value.
maxnumber100Maximum value.
stepnumber1Step between values.
valuenumber""Current value (controlled mode).
defaultValuenumber62Initial value (uncontrolled mode).
onChange(value: number) => void""Called when the value changes.
labelstring"Brightness"Control text (also its accessible label).
showValuebooleantrueShows the numeric value.
unitstring"%"Suffix of the value, for example "%".
stretchnumber56How far it stretches past the limits, in px.
icon"brightness" | "volume" | "none""brightness"Icons at the ends.
colorstring"#F3F4F7"Color of the fill.
dampingnumber0.28Rebound when returning: 0.2 bounces a lot, 0.6 hardly at all.
autoplaybooleanfalseDrags itself, overshooting the limits, until you touch it.

Installation

Install it

1Install the package

npm i furin-ui

2Import it

import { ElasticSlider } from "furin-ui";

Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.

Dependencies

React
18 or later
Other libraries
none
License
MIT

Each file ships its own CSS: there's nothing else to install.

Keep exploring

  • Accessible tabs whose selection is a blob of liquid: it stretches toward the new tab, thins at the neck and merges when it arrives.

    Navigation

  • A seamless infinite marquee: the cursor slows it down and nudges it with inertia, rows run in opposite directions, and keyboard focus pauses it.

    Navigation