> To build a Wix site agentically, or add Wix features like bookings or a store to a site you already have, follow https://www.wix.com/headless/skill.md
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: AngleInput Component

## Article: AngleInput Component

## Article Link: https://dev.wix.com/docs/wix-design-system/components/form/angle-input-component.md

## Article Content:

# AngleInput

_Components/Form_

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

## Overview

```jsx
() => {
  const [angle, setAngle] = React.useState(0);

  const handleAngleChange = (newAngle) => {
    setAngle(newAngle);
  };

  const props = {
    step: 1,
    value: angle,
    onChange: handleAngleChange,
  };

  return (
    <Box padding="20px" gap="20px" direction="vertical" align="center">
      <Box direction="vertical" width="288px">
        <FieldSet
          legend="Angle"
          legendPlacement="left"
          alignment="center"
          gap="small"
          columns="auto 70px"
        >
          <Box align="right">
            <AngleInput {...props} />
          </Box>
          <NumberInput
            size="small"
            suffix={<Input.Affix>°</Input.Affix>}
            value={angle}
            hideStepper
            onChange={handleAngleChange}
          />
        </FieldSet>
      </Box>
    </Box>
  );
};
```

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.

```jsx
() => {
  const [angle, setAngle] = React.useState(0);

  const handleAngleChange = (newAngle) => {
    setAngle(newAngle);
  };

  const props = {
    step: 90,
    value: angle,
    onChange: handleAngleChange,
  };

  return (
    <Box padding="20px" gap="20px" direction="vertical">
      <AngleInput {...props} />
      <Text size="small">Current angle: {angle}deg</Text>
    </Box>
  );
};
```

#### Disabled

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

```jsx
<AngleInput disabled value={0} onChange={() => {}} />;
```

### Common use case examples

#### Settings panel

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

```jsx
() => {
  const [angle, setAngle] = React.useState(0);
  const [shown, setShown] = React.useState(false);
  const [value, setValue] = React.useState(1);
  const [opacity, setOpacity] = React.useState(100);

  const handleAngleChange = (newAngle: number) => {
    setAngle(newAngle);
  };

  const props = {
    step: 1,
    value: angle,
    onChange: handleAngleChange,
  };

  return (
    <SidePanel maxHeight="576px" width="288px" skin="floating">
      <SidePanel.Header title="Button Design" />
      <SidePanel.Content noPadding>
        <SidePanel.Field>
          <FormField
            label="Apply shadow"
            labelPlacement="left"
            labelWidth="1fr"
          >
            <ToggleSwitch size="medium" checked />
          </FormField>
        </SidePanel.Field>
        <SidePanel.Field>
          <FieldSet
            legend="Angle"
            legendPlacement="left"
            alignment="center"
            gap="small"
            columns="auto 70px"
          >
            <Box align="right">
              <AngleInput {...props} />
            </Box>
            <NumberInput
              size="small"
              suffix={<Input.Affix>°</Input.Affix>}
              value={angle}
              hideStepper
              onChange={handleAngleChange}
            />
          </FieldSet>
        </SidePanel.Field>
        <SidePanel.Field>
          <FieldSet gap="medium" legend="Distance" columns="auto 72px">
            <Slider
              onChange={(v) => setValue(Number(v))}
              min={0}
              max={50}
              value={value}
              displayMarks={false}
            />
            <Input
              value={value}
              size="small"
              suffix={<Input.Affix>px</Input.Affix>}
              onChange={(e) => setValue(Number(e.target.value))}
            />
          </FieldSet>
        </SidePanel.Field>
        <SidePanel.Field>
          <FieldSet gap="medium" legend="Size" columns="auto 72px">
            <Slider
              onChange={(v) => setValue(Number(v))}
              min={0}
              max={50}
              value={value}
              displayMarks={false}
            />
            <Input
              value={value}
              size="small"
              suffix={<Input.Affix>px</Input.Affix>}
              onChange={(e) => setValue(Number(e.target.value))}
            />
          </FieldSet>
        </SidePanel.Field>
        <SidePanel.Field>
          <FieldSet gap="medium" legend="Blur" columns="auto 72px">
            <Slider
              onChange={(v) => setValue(Number(v))}
              min={0}
              max={50}
              value={value}
              displayMarks={false}
            />
            <Input
              value={value}
              size="small"
              suffix={<Input.Affix>px</Input.Affix>}
              onChange={(e) => setValue(Number(e.target.value))}
            />
          </FieldSet>
        </SidePanel.Field>
        <SidePanel.Field>
          <FieldSet
            legend="Opacity & color"
            legendSize="small"
            legendPlacement="top"
            alignment="center"
            columns="30px auto 67px"
          >
            <FillPreview fill="#000000" aspectRatio={1} />
            <Box margin="0 8px">
              <Slider
                gradientColor="#000000"
                min={0}
                max={100}
                displayMarks={false}
                onChange={(value) => setOpacity(Number(value))}
                value={opacity}
              />
            </Box>
            <NumberInput
              value={opacity}
              min={0}
              max={100}
              onChange={(value) => setOpacity(value)}
              suffix={<Input.Affix>%</Input.Affix>}
              size="small"
              hideStepper
            />
          </FieldSet>
        </SidePanel.Field>
      </SidePanel.Content>
    </SidePanel>
  );
};
```

## Code

```jsx
import { AngleInput } from '@wix/design-system';
```

### Props

| 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. |

## Testkit

Import the driver matching your test environment:

```jsx
// UniDriver
import { AngleInputUniDriver } from '@wix/design-system/dist/testkit/unidriver';

// Vanilla
import { AngleInputTestkit } from '@wix/design-system/dist/testkit';

// Puppeteer
import { AngleInputTestkit } from '@wix/design-system/dist/testkit/puppeteer';

// Testing Library
import { AngleInputTestkit } from '@wix/design-system/dist/testkit/testing-library';
```

### Driver methods

| 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. |

## 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](invalid-url))
- **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](invalid-url))
- **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](invalid-url))
- **1.140.0** (2024-11-14) — fix: resolve style discrepancies ([#14283](invalid-url))
- **1.139.2** (2024-11-12) — fix: remove native step behaviour ([#14276](invalid-url))
- **1.139.0** (2024-11-07) — feat: introduce new component ([#14233](invalid-url))