Slider

zyra-slider

Range input for numeric selection — a fully styled native <input type="range"> that keeps native keyboard, drag, and touch support for free.

40

API

All inputs and configuration options for zyra-slider.

PropTypeDefaultDescription
valuenumber0Two-way bound current value via [(value)] or ngModel
minnumber0Minimum value
maxnumber100Maximum value
stepnumber1Increment size
size'sm' | 'md' | 'lg''md'Track thickness and thumb size
showValuebooleanfalseShows the current value as a label next to the track
valueLabel(value: number) => string(v) => `${v}`Formats the displayed value, e.g. as a percentage
changed (output)number-Emits the new value on every input event

Accessibility

Built to meet WCAG 2.0 AA. These notes cover the key ARIA, keyboard, and interaction behaviours.

  • Native <input type="range"> under the hood — Arrow keys, Home/End, and Page Up/Down all work out of the box
  • aria-valuetext reflects the formatted (valueLabel) display value for screen readers