0
0
Figmabi_tool~20 mins

Component properties (text, boolean, instance swap) in Figma - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Component Properties Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Boolean Component Properties

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?

AIt locks the icon so it cannot be edited in instances.
BIt automatically changes the icon color based on user interaction.
CIt allows toggling the icon visibility without creating multiple component variants.
DIt duplicates the component to create separate files for each icon state.
Attempts:
2 left
💡 Hint

Think about how boolean properties simplify design variations.

dax_lod_result
intermediate
2:00remaining
Using Text Component Properties for Dynamic Labels

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?

AThe text property cannot be changed in instances.
BBoth instances show the default label from the main component.
CBoth instances show 'ButtonLabel' as literal text.
DThe first instance shows 'Submit' and the second shows 'Cancel'.
Attempts:
2 left
💡 Hint

Text properties let you customize labels per instance.

visualization
advanced
2:30remaining
Instance Swap Property Usage

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?

AA single component with a dropdown to select and display one of the three icons inside it.
BA component that changes color but keeps the same icon regardless of selection.
CThree separate components each with a fixed icon and no swapping ability.
DA text label that changes based on icon selection but does not swap icons.
Attempts:
2 left
💡 Hint

Instance swap lets you replace parts inside a component dynamically.

🔧 Formula Fix
advanced
2:30remaining
Troubleshooting a Boolean Property Not Working

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?

AThe badge layer is not linked to the boolean property visibility in the main component.
BBoolean properties only work with text layers, not shapes like badges.
CYou must create separate variants instead of using boolean properties.
DThe boolean property name must start with 'Is' to work.
Attempts:
2 left
💡 Hint

Check how the boolean property controls layers inside the main component.

🎯 Scenario
expert
3:00remaining
Designing a Flexible Button Component

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?

AUse a boolean property for text changes, a text property for icon visibility, and instance swap for button color.
BUse a text property for the button label, a boolean property to toggle icon visibility, and an instance swap property to select the icon style.
CUse only multiple variants for each combination of text, icon visibility, and icon style.
DUse instance swap for text, boolean for icon style, and text property for icon visibility.
Attempts:
2 left
💡 Hint

Think about which property type fits each feature best.