Retrieves the states declared in the selected component's manifest, such as hover or disabled.
Promise<ElementStateDefinitions>
An object mapping each state's key to its definition. Each definition can include:
| Property | Type | Description |
|---|---|---|
displayName | string | The label for the state in the Design auto panel's state selector. |
className | string | The CSS class the editor applies to preview this state. |
pseudoClass | string | The native CSS pseudo-class this state maps to on the live site, such as 'hover', 'focus', 'disabled', or 'invalid'. |
props | object | The props the editor passes to the component to preview this state. |
Last updated: 8 September 2026