Component Variants
UI DesignWhat 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.
Related terms
View all UI Design terms →Component Properties
Component properties are the parts of a component that users are allowed to change . In Figma, they appear as one set of controls in the…
Auto Layout
Auto Layout is a Figma feature that arranges elements in a frame automatically . You set the direction, spacing, padding and alignment…
Component Library
A component library is a shared set of reusable UI elements , such as buttons, inputs and cards. It can live in a design tool, in code, or…
Interactive States
Interactive states are the visual changes that show how a component responds to the user. They tell users whether an element can be used…
Design System
A Design System is a complete collection of documented standards, principles, guidelines, and reusable components that govern a product's…
Design Tokens
Design tokens are named values that store design decisions , such as colors, spacing and type sizes. Design tools and code read the same…
