Slider

Slider

Components

A continuous or stepped range input allowing users to select single numerical values with dynamic fill feedback.

Range Slider

Provides an intuitive slider control with customized track filling, numerical readout badges, step configurations, and spring interaction effects.

Volume Level 64%
0% 50% 100%

Props Reference

PropTypeDefaultDescription
labelstring"Brightness Level"Title header displayed above the slider control
minnumber0Lower numeric bound
maxnumber100Upper numeric bound
stepnumber1Granularity of each slider step increment
defaultValuenumber70Default initial slider position
unitstring"%"Suffix unit appended to the displayed numeric badge
onChange(val: number) => voidundefinedCallback fired on value change

Accessibility Details

  • ARIA Role: Uses native <input type="range" /> with aria-valuemin, aria-valuemax, and aria-valuenow semantics.
  • Keyboard Handling: Standard Left/Down arrow decreases value; Right/Up arrow increases value; PageUp/PageDown moves by larger intervals; Home/End jumps to min/max.
  • Touch-Friendly: Expanded thumb hit-box for comfortable operation on touch displays.