Elements

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

PropTypeDefaultDescription
valuenumberThe value of the marker

#Root

PropTypeDefaultDescription
sizeString as PropType<"sm" | "md" | "lg">"md"One rung of the dial ladder — the diameter the needle sweeps.
aria-labelstringThe aria-label of the slider.
aria-labelledbystringThe aria-labelledby of the slider.
defaultValuenumber0The 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.
disabledbooleanWhether the slider is disabled.
getRootNode() => ShadowRoot | Document | NodeA root node to correctly resolve document in custom environments. E.x.: Iframes, Electron.
idstringThe unique identifier of the machine.
idsPartial<{ root: string; thumb: string; hiddenInput: string; control: string; valueText: string; }>The ids of the elements in the machine. Useful for composition.
invalidbooleanWhether the slider is invalid.
modelValuenumberThe v-model value of the angle slider
namestringThe name of the slider. Useful for form submission.
readOnlybooleanWhether the slider is read-only.
stepnumber1The step value for the slider.
EventPayload
valueChangedetails: ValueChangeDetails
update:modelValuevalue: number
valueChangeEnddetails: 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.