Slider
Base UIA numeric value or range, adjusted along a track.
ReadyResponsive
Usage
Package export"use client"
import { Slider } from "@jnpll/elements-ui/slider"
export function SliderDemo() {
return (
<Slider
defaultValue={[75]}
max={100}
step={1}
className="mx-auto w-full max-w-xs"
/>
)
}
export default SliderDemo;
Examples
Disabled state
API Reference
| Prop | Type / description | Default |
|---|---|---|
value | number | number[]Controlled numeric value. | - |
max | numberUpper bound. | 100 |
className | stringAdditional classes, merged with the component styles. | - |
Composition & accessibility
Import the composition slots shown in the example. Keep labels and descriptions meaningful; interactive primitives provide keyboard and focus behavior. See the source for the complete typed API.