Blog

Figma Variants & Component Properties: Build Multi-State UI Components

Written by Pawan Swami | 3 Nov, 2025 11:14:59 AM

Variants allow multiple states in one component.

1. Why Variants Matter

Variants in Figma let you:

  • Combine multiple component states (e.g., Default, Hover, Disabled) in one master component
  • Switch states easily for design consistency
  • Reduce the number of separate components in your library
  • Build interactive components for prototypes and design systems

Tip: Variants + Component Properties = efficient, scalable UI design workflow.

2. Creating a Variant

  1. Select a component (e.g., a button).
  2. Click Add Variant in the right-hand panel.
  3. Set the Property name (e.g., State) and Property values (Default, Hover, Active, Disabled).
  4. Adjust each variant’s appearance individually.

Tip: Use consistent naming conventions for states, makes switching easier in design and prototyping.

3. Using Component Properties

Component Properties extend Variants:

  • Boolean: Toggle options (e.g., Icon On/Off, Rounded Corners)
  • Text: Override default text in instances
  • Instance Swap: Swap internal components (e.g., different icons inside a button)

How to add a property:

  1. Select a variant.
  2. Click + Add Property → choose Boolean / Text / Instance Swap.
  3. Name it logically (e.g., Icon, Label, Size).

Properties give you flexibility to reuse the same component in multiple contexts without duplicating it.

4. Practical Examples

Example 1: Button Component

  • Variants: Default, Hover, Disabled
  • Properties: Icon On/Off, Label text override

Example 2: Card Component

  • Variants: Normal, Selected, Highlighted
  • Properties: Swap image placeholder, toggle badge visibility

Example 3: Form Inputs

  • Variants: Focused, Error, Disabled
  • Properties: Placeholder text override, show/hide icon

Nested Variants + Properties make components fully interactive and adaptive.