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