Slider

A range input component powered by noUiSlider. Supports both single value and range selection.

API Reference

Slider

NameTypeDefault
range:booleanfalse
When true, creates a range slider with two handles for selecting a value range instead of a single value.
name:string or arraynil
Name attribute for the hidden form inputs. When range is true, must be an array of two names for start and end values.
value:string or arraynil
Initial value(s) for the slider. When range is true, must be an array of two values [start, end].
orientation:symbol:horizontal
Direction of the slider track and handle movement. :horizontal | :vertical
step:number1
Specifies step for the slider.
min:number0
Specifies minimum value for the slider.
max:number100
Specifies maximum value for the slider.
disabled:booleanfalse
options:hash{}
Options for nouislider.
attributeskeyword arguments

Keyboard Interactions

KeyDescription
ArrowUpWhen orientation is horizontal, moves the handle to the right. When orientation is vertical, moves the handle to the top.
ArrowDownWhen orientation is horizontal, moves the handle to the left. When orientation is vertical, moves the handle to the bottom.
ArrowLeftWhen orientation is horizontal, moves the handle to the left. When orientation is vertical, moves the handle to the top.
ArrowRightWhen orientation is horizontal, moves the handle to the right. When orientation is vertical, moves the handle to the bottom.

Examples