Components/Form
Interactive docs page: https://wix-pages.com/design-system-documentation/#/component/angleinput
Angle input enables users select an angle degree value.
<NumberInput/> to indicate to value and give users the option to type the value manually.<Slider/> instead.Define a step to reduce the amount of accepted values within a range. Default step is 1.
Disable all angle input interactions with disabled prop. Use it to highlight a temporary unavailable function.
Use angle input to let users select the angle of an element drop shadow.
| Name | Type | Default | Description |
|---|---|---|---|
dataHook | string | — | Applies a data-hook HTML attribute that can be used in the tests. |
disabled | boolean | false | Indicates if the slider is disabled. |
onBlur | () => void | — | Optional callback for blur event. |
onChange (required) | (angle: number) => void | — | Callback function called on value change. |
onFocus | () => void | — | Optional callback for focus event. |
onPointerDown | () => void | — | Defines a callback function which is called when onpointerdown is triggered. |
onPointerUp | () => void | — | Defines a callback function which is called when onpointerup is triggered. |
step | number | 1 | Defines step increments for angle adjustment. |
value (required) | number | — | The current value of the angle. |
Import the driver matching your test environment:
| Method | Description |
|---|---|
isFocused | Checks if the input element is focused. |
isDisabled | Checks if the input element is disabled. |
focus | Focuses the input element. |
blur | Blurs the input element. |
getValue | Retrieves the value of the input element. |
setValue | Sets the value of the input element. |
incrementByStepCount | Increases the angle by pressing the 'ArrowUp' key a specified number of times. |
decrementByStepCount | Decreases the angle by pressing the 'ArrowDown' key a specified number of times. |
exists | Checks whether the component found with the given data hook. |
element | Gets the component root element. |
click | Clicks on the component root element. |
base | Returns UniDriver for the base element. |
onPointerUp also fires when the browser cancels a drag. (#17266)Last updated: 22 October 2026