Skip to content
Forms

RangeFlow

A slider whose fill and thumb glide on a spring. The value bubble hangs from the thumb and swings with how fast you drag. Built on a native range input.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
labelstring—Field name above the slider.
min / max / stepnumber0 / 100 / 1Range and step size.
valuenumber—Value (controlled).
defaultValuenumberminValue at start (uncontrolled).
onChange(value: number) => void—Called while sliding.
format(value: number) => stringStringText for the value, on screen and for screen readers.
namestring—Form field name.
colors[string, string]["#a78bfa", "#22d3ee"]Fill gradient start and end.
classNamestring"w-full max-w-sm"Wrapper look.