Slider

Base UI

A numeric value or range, adjusted along a track.

ReadyResponsive

Usage

Package export
tsx
"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

PropType / descriptionDefault
valuenumber | number[]

Controlled numeric value.

-
maxnumber

Upper bound.

100
classNamestring

Additional 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.