Skip to main content

Component Properties

UI Design

What are 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 right panel, so designers can edit an instance without digging into its layers.

Types of Component Properties

  • Boolean: Show or hide a layer, such as an icon
  • Instance swap: Replace a nested component, such as which icon appears
  • Text: Edit a label or other text
  • Variant: Switch between variants of the component

When to use Component Properties

Use properties when a component has optional parts or editable content. A button with a boolean for its icon, an instance swap for the icon and a text property for the label needs far fewer variants.

Why Component Properties matter

Properties act like a component's API on the design side. When their names match the props in code, developers can build exactly what designers use.

Frequently asked questions

What types of component properties does Figma have?

Four: boolean properties show or hide a layer, instance swap properties replace a nested component, text properties edit a text layer, and variant properties switch between variants.

What is the difference between component properties and variants?

Variants are separate versions of a component. Other component properties change parts of one component, such as hiding an icon or editing a label, so you need far fewer variants.

Why do component properties matter for developers?

They describe what can change in a component, much like props in code. Clear property names make the design closer to the coded component and make handoff easier.