In Figma, you create a component with a boolean property named ShowIcon. When ShowIcon is true, an icon appears in the component instance; when false, it disappears.
What is the main benefit of using a boolean property for this?
Think about how boolean properties simplify design variations.
Boolean properties let you toggle features like icon visibility inside one component, avoiding multiple variants and making design updates easier.
You have a Figma component with a text property called ButtonLabel. You create two instances: one with ButtonLabel set to 'Submit' and another set to 'Cancel'.
What will be the text shown in each instance?
Text properties let you customize labels per instance.
Text properties allow each instance to display different text, so 'Submit' and 'Cancel' appear as set.
You have a component with an instance swap property called IconType that can swap between three icon components: SearchIcon, CloseIcon, and MenuIcon.
Which visualization best shows how the instance swap property affects the component?
Instance swap lets you replace parts inside a component dynamically.
Instance swap properties allow swapping nested components, so a dropdown selecting icons inside one component is the correct visualization.
You created a boolean property ShowBadge in a component to toggle a badge's visibility. However, when you toggle it in instances, the badge never appears or disappears.
What is the most likely cause?
Check how the boolean property controls layers inside the main component.
Boolean properties control visibility by linking to layer visibility in the main component. If not linked, toggling does nothing.
You need to design a button component in Figma that supports:
- Changing the button text
- Showing or hiding an icon
- Swapping the icon between different styles
Which combination of component properties should you use?
Think about which property type fits each feature best.
Text properties are for editable text, boolean for toggling visibility, and instance swap for swapping nested components like icons.