AngleSlider
Pick angle value between 0 and 360
Source
Docs
Package
Usage
Use AngleSlider component to pick angle value between 0 and 360:
0
Size
Thumb size
Controlled
formatLabel
To change angle label format use formatLabel prop.
It accepts function that takes the angle value and returns React node:
0°
Marks
Set marks prop to display marks on the slider. In mark object value is required,
label is optional. To restrict selection to marks only, set restrictToMarks prop:
0°
0°
onChangeEnd
onChangeEnd callback is called when user the slider is stopped from being dragged or value is changed with keyboard.
You can use it as a debounced callback to avoid too frequent updates.
0
Current value: 0
End value: 0
Accessibility
AngleSlider is fully accessible and supports keyboard interactions:
ArrowLeft/ArrowDownandArrowRight/Arrowupdecrease/increase value bystepHometo set value to 0Endto set value to 359
To make the component visible to screen readers, set aria-label prop: