Get a variant by ID (Beta)
Get a variant by ID (Beta)
component.getVariant(variantId)
Retrieves a component variant by its ID.
Beta
These methods are in public beta and may change with future releases.
Syntax
Parameters
variantId: string — The ID of the variant to retrieve. Pass'base'to retrieve the base variant.
Returns
Promise<Variant>
A Promise that resolves to the Variant object with the given ID.
Example
Designer Ability
Checks for authorization only