AngleInput

Components/Form

Interactive docs page: https://wix-pages.com/design-system-documentation/#/component/angleinput

Overview

Copy

Angle input enables users select an angle degree value.

Do

  • Use it to adjust settings, such as shadow or rotation.
  • Use angle input with <NumberInput/> to indicate to value and give users the option to type the value manually.

Don't

  • Don't use it to select a linear value, use <Slider/> instead.

Feature examples

Step

Define a step to reduce the amount of accepted values within a range. Default step is 1.

Copy

Disabled

Disable all angle input interactions with disabled prop. Use it to highlight a temporary unavailable function.

Copy

Common use case examples

Settings panel

Use angle input to let users select the angle of an element drop shadow.

Copy

Code

Copy

Props

NameTypeDefaultDescription
dataHookstring—Applies a data-hook HTML attribute that can be used in the tests.
disabledbooleanfalseIndicates 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.
stepnumber1Defines step increments for angle adjustment.
value (required)number—The current value of the angle.

Testkit

Import the driver matching your test environment:

Copy

Driver methods

MethodDescription
isFocusedChecks if the input element is focused.
isDisabledChecks if the input element is disabled.
focusFocuses the input element.
blurBlurs the input element.
getValueRetrieves the value of the input element.
setValueSets the value of the input element.
incrementByStepCountIncreases the angle by pressing the 'ArrowUp' key a specified number of times.
decrementByStepCountDecreases the angle by pressing the 'ArrowDown' key a specified number of times.
existsChecks whether the component found with the given data hook.
elementGets the component root element.
clickClicks on the component root element.
baseReturns UniDriver for the base element.

Changelog

  • 1.340.0 (2026-10-21) — maintenance release, no component-specific changes
  • 1.339.0 (2026-10-19) — maintenance release, no component-specific changes
  • 1.338.0 (2026-10-15) — maintenance release, no component-specific changes
  • 1.330.3 (2026-09-29) — fix: dragging the knob on a touch screen now turns the dial instead of scrolling the page, and onPointerUp also fires when the browser cancels a drag. (#17266)
  • 1.330.0 (2026-09-28) — maintenance release, no component-specific changes
  • 1.326.0 (2026-09-17) — fix: in Harmony (odeditor) the knob stays round while hovered instead of stretching into a pill, and grows evenly when pressed. (#17094)
  • 1.323.0 (2026-09-10) — maintenance release, no component-specific changes
  • 1.318.0 (2026-08-28) — maintenance release, no component-specific changes
  • 1.310.0 (2026-08-10) — maintenance release, no component-specific changes
  • 1.292.0 (2026-06-22) — maintenance release, no component-specific changes
  • 1.291.0 (2026-06-19) — maintenance release, no component-specific changes
  • 1.289.0 (2026-06-17) — maintenance release, no component-specific changes
  • 1.273.0 (2026-04-30) — maintenance release, no component-specific changes
  • 1.272.0 (2026-04-27) — maintenance release, no component-specific changes
  • 1.266.0 (2026-04-07) — maintenance release, no component-specific changes
  • 1.260.0 (2026-03-17) — maintenance release, no component-specific changes
  • 1.254.0 (2026-02-03) — maintenance release, no component-specific changes
  • 1.250.0 (2026-01-27) — maintenance release, no component-specific changes
  • 1.169.0 (2025-03-10) — maintenance release, no component-specific changes
  • 1.164.0 (2025-02-25) — feat: expose pointer events (#14543)
  • 1.140.0 (2024-11-14) — fix: resolve style discrepancies (#14283)
  • 1.139.2 (2024-11-12) — fix: remove native step behaviour (#14276)
  • 1.139.0 (2024-11-07) — feat: introduce new component (#14233)

Last updated: 22 October 2026

Did this help?