Slider

Select numeric values along a draggable track.

Slider

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.

Size

Compare the inherited small, default, and large component sizes.

Shape

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.

Default

Bind a number with v-model between min and max.

Color

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.

Ticks

Display step ticks along the track.

Text Fixed

Append a suffix such as % next to the current value.

Disabled

Set disabled to prevent dragging, track clicks and keyboard adjustments while preserving the current value. Use the switch to toggle the disabled state.

API

PROPS

Property
Type
Values
Description
default
Example
More
size
small | medium | large
Set or inherit track, thumb, and interaction height.
—
—
variant
String
classic | soft | steps
Select the slim rail, inset trough, or discrete step design.
classic
show-value
Boolean
truefalse
Keep the current value bubble visible.
false
shape
String
rounded | square
Select rounded or square geometry for the track, thumb, ticks, and value bubble.
rounded
v-model
Number
Number
Current value.
0
min
Number
Number
Minimum value.
0
max
Number
Number
Maximum value.
100
step
Number
Number
Step increment.
1
disabled
Boolean
truefalse
Disable interaction.
false
color
String
primarysuccessdanger
Slider color.
primary
text-fixed
String
String
Suffix shown next to value.
—
ticks
Boolean
truefalse
Show tick marks.
false

EVENTS

Event
Type
Description
default
Example
More
update:modelValue
—
Value changed.
—
—
change
—
Value committed.
—
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied