Slider

Range slider with a gradient fill and a floating value bubble. Built on a native input, so keyboard and screen readers just work.

Import

import { Slider } from "@igorao79/uivix";

Examples

Controlled

Volume: 60%

Step & format

Budget: $250

Disabled

Props

PropTypeDefaultDescription
valuenumber-Controlled value
defaultValuenumberminInitial value when uncontrolled
onChange(value: number) => void-Called on change
min / max / stepnumber0 / 100 / 1Range and step
showValuebooleantrueShow a value bubble on hover/focus
formatValue(value: number) => stringStringFormat the bubble text
disabledbooleanfalseDisable the slider
classNamestring-Additional CSS classes