0
0
Figmabi_tool~10 mins

Interactive components in Figma - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

This table shows the states of a button interactive component in Figma with their colors and actions.

CellValue
A1Button State
A2Default
A3Hover
A4Pressed
B1Color
B2Blue
B3Light Blue
B4Dark Blue
C1Action
C2No Action
C3Highlight
C4Click Event
Formula Trace
IF(Button State = 'Hover', 'Light Blue', IF(Button State = 'Pressed', 'Dark Blue', 'Blue'))
Step 1: Button State = 'Hover'
Step 2: IF(TRUE, 'Light Blue', ...)
Step 3: IF(FALSE, 'Dark Blue', 'Blue')
Cell Reference Map
    A          B          C
1 |Button State|Color     |Action     |
2 |Default     |Blue      |No Action  |
3 |Hover       |Light Blue|Highlight  |
4 |Pressed     |Dark Blue |Click Event|
The formula references the 'Button State' column to decide the color output.
Result
    A          B          C
1 |Button State|Color     |Action     |
2 |Default     |Blue      |No Action  |
3 |Hover       |Light Blue|Highlight  |
4 |Pressed     |Dark Blue |Click Event|
The color changes based on the button state: Default shows Blue, Hover shows Light Blue, Pressed shows Dark Blue.
Sheet Trace Quiz - 3 Questions
Test your understanding
What color does the button show when the state is 'Hover'?
ADark Blue
BBlue
CLight Blue
DNo Color
Key Result
IF(condition1, value1, IF(condition2, value2, default_value)) pattern for state-based color selection