Slider

Sliders let users make selections from a range of values

Usage

Use Slider for selecting a value or range along a track.

import { Slider } from "@udixio/ui-react"
<Slider name="volume" value={30} step={5} />

Step and marks

  • Provide step for incremental movement.
  • Or use marks to snap to labeled positions; omit step to only allow marks.

Min and max

The slider supports finite and infinite ends. Use -Infinity/Infinity to make the first/last marks open ended.

Keyboard and change events

The slider is focusable and responds to ArrowLeft/ArrowRight. Listen to onChange for value updates.