Skip to main content

Component Variants

UI Design

What are Component Variants

Component variants are versions of one component grouped into a single set, such as a button in different sizes, states and colors. In Figma, designers switch between variants with simple controls instead of hunting for separate components.

How Component Variants work

Variants are defined by:

  • Properties: What can change, such as size, state or color
  • Values: The options for each property, such as default, hover, pressed and disabled

Each variant is a unique combination of values. You only create the combinations the product uses.

When to use Component Variants

Use variants when components differ in a few predictable ways: states, sizes, themes or types. Do not use them to group unrelated items, such as different icons.

Benefits of Component Variants

Variants keep a component library small and easy to search. Property names can match the props developers use in code, which makes handoff clearer.

Frequently asked questions

What are component variants in Figma?

Variants group similar components, such as a button in different sizes and states, into one component set. Designers pick a variant from simple controls instead of searching a long list of separate components.

What is the difference between variants and component properties?

A variant property is one type of component property. It switches between whole versions of a component. Other property types toggle a layer, edit text or swap a nested instance without creating new variants.

Do you need a variant for every combination?

No. Each variant must be a unique combination of property values, but you only create the combinations the product actually uses.