Components/Form
Interactive docs page: https://wix-pages.com/design-system-documentation/#/component/cornerradiusinput
Corner radius inputs enable users to adjust the border radius for different elements, such as boxes or images.
<NumberInput/> instead.Adjust the size of the input using the size prop. It supports 3 sizes:
large to emphasize input.medium (default) for most common cases.small for more dense and compact layouts.Below the input, include text explaining the status.
To add an inline error message wrap the component in a <FieldSet/> and add the statusMessage to it.
Corners can be adjusted individually or collectively by toggling between the "Edit individually" and "Apply to all corners" options in the lock and unlock toggle.
Specify the unit used to adjust corner radius of an element using suffix. The default unit is pixels (px).
Define the range of the corner radius values using min and max.
Use onInvalid callback function to notify users when they enter invalid inputs. Explain why it's invalid using the statusMessage prop of a <FieldSet/>.
Allow users to change units of corner radius by adding dropdown selection to the suffix area.
Use corner radius input to control the design of elements, such as button or box.
Assign each input of the control with an ariaLabel value to specify which corner it represents, for example:
ariaLabel = "Top left corner"ariaLabel = "Top right corner"ariaLabel = "Bottom left corner"ariaLabel = "Bottom right corner"When the user is applying changes to all corners, use linkedValuesChangedMessage to pass a message indicating that all corners have been updated.
| Name | Type | Default | Description |
|---|---|---|---|
bottomLeft | CornerProps | — | Properties for the bottom left corner input. |
bottomRight | CornerProps | — | Properties for the bottom right corner input. |
dataHook | string | — | Applies a data-hook HTML attribute that can be used in tests. |
linked | boolean | — | When set to true, linked mode is initially enabled on the component. |
linkedValuesChangedMessage | string | — | When all corners have been modified in linked mode, this message is announced to screen readers. |
linkingButtonLabels (required) | { pressed: string; unpressed: string; } | — | Specifies the labels displayed when hovering over the link button. The pressed key defines the label shown when link mode is active (or pressed), while the unpressed key defines the label for when link mode is inactive (or unpressed). |
max | number | 999 | Max value for all corners. |
min | number | — | Min value for all corners. |
onLinkedToggle | (isLinked: boolean) => void | — | Callback function that is called when the linked mode is toggled on or off. |
size | "small" | "tiny" | "medium" | "large" | — | Specifies the size of the component. |
topLeft | CornerProps | — | Properties for the top left corner input. |
topRight | CornerProps | — | Properties for the top right corner input. |
Import the driver matching your test environment:
| Method | Description |
|---|---|
isLinked | returns if linking functionality is enabled |
getSize | returns the size of component |
getCornerInput | Returns the testkit of the input of the specified corner |
linkingButton | Returns linking button testkit |
getLinkingButton | — |
getLinkedValuesChangedMessage | — |
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. |
Last updated: 22 October 2026