getAppliedPreset()

Retrieves the key of the preset currently applied to the selected component. A preset is a named, predefined visual variation of the component, declared in the manifest's presets property.

Syntax

Copy

Returns

Promise<string | null>

The key of the applied preset, or null if no preset is applied.

Example

Copy

See also

Last updated: 8 September 2026

Did this help?