Component Properties
UI DesignWhat 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.
Related terms
View all UI Design terms →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…
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…
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…
Design Handoff
Design handoff is the step where designers pass finished designs to developers to build. It includes the screens, specs, assets, states…
