Tree of DesignAll terms A–Z

Variant

A version of a component, such as size or state.

See it on the 3D tree

Going deeper

Variants are alternatives within one component, organised by properties such as type, size or state. A button might have primary and secondary types, each with default, hover and disabled states. In Figma they are grouped into a set; in code they are usually selected through props. Every combination multiplies upkeep.

Why it matters

A clear set shows which options are supported, so people choose one instead of detaching or inventing their own.

In practice

You add a destructive variant to the button for deleting accounts, defining its hover, focus and disabled appearance too.

Common mistake

Creating a new variant for every one-off request until the set is too large to maintain or understand.

Connected terms