Variants
classic, soft, and steps change the slider structure, not only its color. All variants use one native range input and keep the visual thumb exactly centered on the track.
classic, soft, and steps change the slider structure, not only its color. All variants use one native range input and keep the visual thumb exactly centered on the track.
Compare the inherited small, default, and large component sizes.
Set shape="square" to give the track, completed segment, thumb, ticks, and value bubble a consistent square geometry. Shape is independent from variant, so it works with classic, soft, and steps.
Bind a number with v-model between min and max.
The thumb and completed track share the selected color. In soft, the track automatically uses a translucent tone derived from that color. This example pairs classic, soft, and steps with a different semantic color; the steps item uses a step of 10 so its discrete points remain distinct.
Display step ticks along the track.
Append a suffix such as % next to the current value.
Set disabled to prevent dragging, track clicks and keyboard adjustments while preserving the current value. Use the switch to toggle the disabled state.