Slider
Range selector with single or dual thumbs, step snapping, marks, and keyboard arrow support.
Preview
Value: 40
Playground
Flip props to see how the component responds. The snippet below updates as you change options.
Value: 50
Installation
Install the individual package:
$ pnpm add @sisyphos-ui/slider @sisyphos-ui/coreOr use the umbrella package that bundles everything:
$ pnpm add @sisyphos-ui/uiUsage
Import the component styles and the component itself:
import "@sisyphos-ui/slider/styles.css";
import { Slider } from "@sisyphos-ui/slider";Range
Pass two thumbs by adding `range` and a tuple value.
Range: 20 – 80
Show value labels
Render live value bubbles above the thumbs via `showValue`.
Formatted values
`formatValue` lets you add currency, units, or locale formatting.
Disabled
Works for both single and range modes.
Semantic colors
Reuse the 5-color palette shared across the library.
API
Props table is being written. See the package README for the complete API surface.
The full API including refs, ARIA attributes, and HTML passthroughs lives in the package README.