> ## Documentation Index
> Fetch the complete documentation index at: https://confidence-auth-testing.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a Flag Variant

> Learn how to create variants to implement different experiences for a flag.

**Create a Flag Variant**

Learn how to create variants to implement different experiences for a flag.

[Do this via the API →](/docs/reference/api/how-to-guides/flags/create-flag-variants.md)

A [variant](/docs/capabilities/flags/create-flags.md#variants) is a named set of values for the properties of a flag.

## Create a Variant

The variant creation dialog guides you through two steps.

**1. Go to Confidence**

**2. On the left sidebar, select Flags**

**3. Go to the flag you want to add a variant to**

**4. Click the add button next to Variants on the flag page**

**5. 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.

**6. 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.

> [!TIP]
>
> 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.

## Related Resources

> **[Create Rules](/docs/capabilities/flags/create-conditional-targeting-rule.md)**
>
> Target users with your variants

> **[Edit Flag Schema](/docs/capabilities/flags/edit-flag-schema.md)**
>
> Define properties for your variants

> **[Launch an A/B Test](/docs/guides/run-an-ab-test.md)**
>
> Compare variants in an experiment

> **[Create Variants API](/docs/reference/api/how-to-guides/flags/create-flag-variants.md)**
>
> API reference for variants
