Docs / Components / Tactile Slider

Tactile Slider

A neomorphic tactile slider component with notched tick markers and a floating inertial rolling odometer percentage badge.

01234567890123456789%

Dependencies

Install the following dependencies to use this component:

1npm install motion clsx tailwind-merge

Installation

Run the following command in your terminal to add the component to your project:

1npx rankflow-ui@latest add tactile-slider

Props Reference

PropTypeDefaultDescription
valuenumberundefinedControlled numeric value.
defaultValuenumber38Default initial value.
minnumber0Minimum slider value.
maxnumber100Maximum slider value.
stepnumber1Step granularity for value changes.
ticksnumber9Number of vertical tick marks spaced across the track.
unitstring'%'Unit string rendered next to the rolling number badge.
showValueBadgebooleantrueWhether to display the floating rolling percentage badge.
onChange(value: number) => voidundefinedCallback fired when slider value updates.
onChangeEnd(value: number) => voidundefinedCallback fired on drag release.
disabledbooleanfalseDisable slider interactions.
classNamestring''Additional CSS classes.