Forms
Slider
Picks a number in a range. Slider is a native range input with a value readout. SpringSlider adds a thumb that grows and settles with a spring.
Group: Forms. Exports: Slider, SpringSlider. shadcn/ui equivalent: Slider (partial parity).
Usage
import { Slider } from "./halaska-kit";
Slider props
valueany: The controlled value.onChange(value) => void: Called with the new value.minnumber(default 0):maxnumber(default 100):labelstring: Visible label."aria-label"any:
SpringSlider props
valueany: The controlled value.onChange(value) => void: Called with the new value.minnumber(default 0):maxnumber(default 100):labelstring: Visible label.
Accessibility
- Slider renders a native range input, so arrow keys, Home and End change the value.
- SpringSlider has the slider role with its value, takes focus, and responds to arrow keys, Home, End and touch. Shift with an arrow moves in larger steps.
- A string label becomes the control's aria-label on both.
Known gaps
- Single thumb only: no range selection.
- No step prop. Values move in whole numbers.
- No vertical orientation, and no disabled state.
Used in
Halaska UI · Components · Patterns · Screens · Install