A variant is a named set of values for the properties of a flag.
Create a Variant
The variant creation dialog guides you through two steps.
On the left sidebar, select Flags
Go to the flag you want to add a variant to
Click the add button next to Variants on the flag page
Step 1: Enter variant details
Enter a Name for the variant. Choose a descriptive name like new-design. The name can’t be changed after creation.Optionally add a Description to explain what this variant represents.Optionally add an Image to help visually identify the variant.Click Next to continue.
Step 2: Set property values
Set the values this variant returns for each property in the flag’s schema.If you leave a property empty, the SDK returns the default value specified in the client when the flag is resolved.Click Create to create the variant.
Use short and descriptive names, informed by the provided experience. Use
kebab-case, like blue instead of Blue, and don’t include too much
information: use blue instead of blue-button-color. Avoid including the
name of the flag in the variant name.
If a variant doesn’t specify the value of a property, the SDK uses the
default value specified when a client resolves the flag.