getState()

Retrieves the active state of the selected component.

Syntax

Copy

Returns

Promise<string | null>

The key of the active state, or null if the component is in its default state.

Example

Copy

See also

Last updated: 8 September 2026

Did this help?