Extended from PrimeVue Slider
This slider allows the user to select a value from 1 to 20 with an allowed step increment of 1.
Selected value: 1
This slider uses formatting functions to add a dollar sign to the minimum/maximum labels and the tooltip showing the current value.
Selected value: $200
Though two-day data binding via v-model is recommended, it's also possible to use the startingValue prop and listen to the @change event to hook up the slider to a variable.
This example also shows using ariaLabel instead of ariaLabelledby to describe the purpose of the slider to screen reader users.
Selected value: 650
This slider is disabled. Use this state sparingly and only as a temporary visual indication (for example, during a form submission), as there is a known issue with PrimeVue's slider where it can still receive focus via keyboard when disabled and the value of the slider can be modified via the keyboard.
Selected value: 50%
ariaLabelStringnullariaLabelledbyStringnulldisabledBooleanfalselabelFormatterFunction(val) => valmaxNumber100minNumber1startingValueNumber1stepNumber1tooltipFormatterFunction(val) => val