Reference
Angle Slider
AngleSlider, dressed in the paper-and-ink system: a flat paper dial the thumb sweeps as a pigment needle over hairline degree ticks. The parts — Root, Label, ValueText, Control, Thumb, MarkerGroup, Marker, HiddenInput.
Root · Label · Thumb · ValueText · Control · Track · MarkerGroup · Marker
#Control
A styled part — no props of its own; it takes the anatomy's shared styling.
#HiddenInput
A styled part — no props of its own; it takes the anatomy's shared styling.
#Label
A styled part — no props of its own; it takes the anatomy's shared styling.
#MarkerGroup
A styled part — no props of its own; it takes the anatomy's shared styling.
#Marker
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | The value of the marker |
#Root
| Prop | Type | Default | Description |
|---|---|---|---|
size | String as PropType<"sm" | "md" | "lg"> | "md" | One rung of the dial ladder — the diameter the needle sweeps. |
aria-label | string | The aria-label of the slider. | |
aria-labelledby | string | The aria-labelledby of the slider. | |
defaultValue | number | 0 | The initial value of the slider. Use when you don't need to control the value of the slider. |
dir | 'ltr' | 'rtl' | "ltr" | The document's text/writing direction. |
disabled | boolean | Whether the slider is disabled. | |
getRootNode | () => ShadowRoot | Document | Node | A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron. | |
id | string | The unique identifier of the machine. | |
ids | Partial<{ root: string; thumb: string; hiddenInput: string; control: string; valueText: string; }> | The ids of the elements in the machine. Useful for composition. | |
invalid | boolean | Whether the slider is invalid. | |
modelValue | number | The v-model value of the angle slider | |
name | string | The name of the slider. Useful for form submission. | |
readOnly | boolean | Whether the slider is read-only. | |
step | number | 1 | The step value for the slider. |
| Event | Payload |
|---|---|
valueChange | details: ValueChangeDetails |
update:modelValue | value: number |
valueChangeEnd | details: ValueChangeDetails |
#Thumb
A styled part — no props of its own; it takes the anatomy's shared styling.
#ValueText
A styled part — no props of its own; it takes the anatomy's shared styling.