Slider

Slider is a component to provide input with a drag handle.

Two-way binding is defined using the standard ngModel directive.

Two-way binding is defined using the standard ngModel directive.

basic-demo

Slider is connected to an input field using two-way binding.

input-demo

Size of each movement is defined with the step property.

step-demo

When range property is present, slider provides two handles to define two values. In range mode, value should be an array instead of a single value.

range-demo

Image filter implementation using multiple sliders.

user headerContrastBrightnessSepia
filter-demo

Default layout of slider is horizontal, use orientation property for the alternative vertical mode.

vertical-demo
template-driven-forms-demo

Slider can also be used with reactive forms. In this case, the formControlName property is used to bind the component to a form control.

reactive-forms-demo

Screen Reader

Slider element component uses slider role on the handle in addition to the aria-orientation, aria-valuemin, aria-valuemax and aria-valuenow attributes. Value to describe the component can be defined using ariaLabelledBy and ariaLabel props.

Keyboard Support

KeyFunction
tabMoves focus to the slider.
left arrowup arrowDecrements the value.
right arrowdown arrowIncrements the value.
homeSet the minimum value.
endSet the maximum value.
page upIncrements the value by 10 steps.
page downDecrements the value by 10 steps.
ON THIS PAGE
Figma UI Kit
The official Figma UI Kit for Prime UI libraries, the essential resource for designing with PrimeOne components.
Learn More