The p-slider__wrapper and p-slider__input classes should be used with <input type="range"> elements when you want to provide a numeric representation of the slider value, as well as allow the user to specify a value.

Updated In version 2.6.0 Vanilla framework added slider styling as default for all range inputs, so adding p-slider class just to style <input type="range"> is not necessary any more.


To import just this component into your project, copy the snippet below and include it in your main Sass file.

@import 'patterns_slider';
@include vf-p-slider;

For more information see Customising Vanilla in your projects, which includes overrides and importing instructions.


For more information view the slider design spec, which includes the specification in markdown format and a PNG image.