Components/Form
Interactive docs page: https://wix-pages.com/design-system-documentation/#/component/listitemeditable
ListItemEditable is an internal editable component which is used to build dropdown or menu like components. Usually this item should not be used by consumers, though custom options builder is exposed for usage with DropdownBase.
Setting a status to indicate some there's an issue.
The editable list item can be used alongside any other list item, build by a dedicated builder
| Name | Type | Default | Description |
|---|---|---|---|
approveButtonDisabledOnEmpty | boolean | true | Make the approve button disabled when input value is empty. |
approveButtonTooltipContent | ReactNode | — | Approve button tooltip content. |
approveButtonTooltipProps | TooltipCommonProps | — | Approve button tooltip common props. |
autoFocus | boolean | — | Focus the input on mount (standard React input autoFocus) |
cancelButtonTooltipContent | ReactNode | — | Cancel button tooltip content. |
cancelButtonTooltipProps | TooltipCommonProps | — | Cancel button tooltip common props. |
dataHook | string | — | Applied as data-hook HTML attribute that can be used in the tests. |
margins | "none" | "list-item" | "none" | "list-item" | — | The type of margin. |
maxLength | number | — | Maximum number of characters allowed in the input. |
onApprove | (value: string) => void | — | A callback function triggered by clicking the approve button. ##### Signature: function(value: string) => void * value: the text contained in the input. |
onCancel | () => void | — | A callback function triggered by clicking the cancel button. ##### Signature: function() => void. |
onChange | ChangeEventHandler | — | Defines a standard input onChange callback. |
onEnterPressed | KeyboardEventHandler<HTMLInputElement> | — | Defines a callback handler that is called when the user presses enter on the input element. |
placeholder | string | — | Placeholder to display. |
size | "small" | "medium" | — | Specifies the size of the input. |
status | "error" | "warning" | "loading" | — | Input status - use to display an status indication for the user. |
statusMessage | ReactNode | — | The status (error/loading) message to display when hovering the status icon, if not given or empty, no tooltip is displayed. |
suffix | ReactNode | — | Pass a component you want to show as the suffix of the input, e.g., text, icon. |
value | string | — | Initial value to display with component render. |
Import the driver matching your test environment:
| Method | Description |
|---|---|
getValue | A getter for the value |
getPlaceholder | A getter for the placeholder |
isApproveButtonDisabled | Returns true it the approve button is disabled |
enterText | Simulated writing text in the input |
clickApprove | Simulates clicking the approve button |
clickCancel | Simulates clicking the cancel button |
pressEnter | Simulates clicking the enter key |
isFocus | Returns true if input element is focused |
hasSuffix | Returns true if input element has suffix |
getCancelButtonTooltipText | Returns cancel button tooltip text |
getApproveButtonTooltipText | Returns approve button tooltip text |
hasStatus | Return true if the given status is displayed |
getStatusMessage | If there's a status message, returns its text value |
getMaxLength | Returns the maxLength attribute value |
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: 30 October 2026