Get all variants of a component (Beta)
component.getVariants()
Retrieves all variants of a component.
Beta
This feature is released as part of a Beta program and may change in future releases.
Syntax
Returns
Promise<Array<Variant>>
A promise that returns an array of variants.
Example
Designer Ability
Checks for authorization only