Reorder variants (Beta)
Reorder variants (Beta)
Reorder variants (Beta)
component.reorderVariants(variantIds)Reorders the variants of a component by specifying the desired order as an array of variant IDs.
These methods are in public beta and may change with future releases.
variantIds: string[] — An array of variant IDs in the desired order.
Pass 'base' to refer to the base variant.
For a partial reorder, include only the variants to reposition.
Remaining variants shift to follow the last repositioned variant.Promise<void>
A Promise that resolves when the reorder is complete.
Fully reorder all variants:
Partially reorder variants: