Get selected variant (Beta)
Get selected variant (Beta)
Get selected variant (Beta)
component.getSelectedVariant()Retrieves the selected variant of a component.
If no variant is selected (that is, with the isSelected attribute set to true), the function returns the base variant of the specified component.
Similarly, if the currently selected component in the Designer is not a variant of the specified component, no variant of the specified component is selected, so the function returns the base variant of the specified component.
These methods are in public beta and may change with future releases.
Promise<Variant>
A promise that returns a variant.
Checks for authorization only