Get all variants of a component (Beta)
Get all variants of a component (Beta)
component.getVariants()
Retrieves all variants of a component.
Beta
These methods are in public beta and may change with future releases.
Syntax
Returns
Promise<Array<Variant>>
A promise that returns an array of variants.
Example
Designer Ability
Checks for authorization only