Why do we use Components?
- Re-use components
- Build consistency across UI
- Two aspects to a component
- Main Component
- Instances
Creating a Component
- Diamond Symbol on top
- Option + Command + K
- Alt + Control + K
- Alt for Instance
- Command Option B to Detach
- Select multiple things and create together
General Facts
- Detach Instance from a component - Alt + Ctrl + B
- Extra Changes on a Instance is known as Overrides
- Even If we delete component, we can restore it even with one instance
- Swapping only works If we’ve used an inside component declaration
- To see components that has been already declared visit Assets panel on left side of figma window
- Quick Shortcuts -
- Alt/Option + 1 = Layers Panel
- Alt/Option + 2 = Assets Panel
- Alt/Option + 3 = Libraries Panel
- Alt/Option + 8 = Design Panel
- Alt/Option + 9 = Prototype Panel
Component Properties
- What can you change in an instance
- What if we want them to change text
- Hide or show specific thing?
- Layers that can be swapped
Using Properties inside Components
- Boolean Properties
- Instance Swap
- Text Properties (Doesn’t support rich text - superscript, list, etc)
- Variant Properties (later)

Instance Swap Property
- Replace icons
- Icons must be declared in a Library
- Only instances can come and swap
- Normal layers cannot be found via search
Overrides in an Instance
Changes you make to a single instance
They stay even if you swap btw instances
Layer structure needs to be identical
Component is unaffected
But if you copy this instance, overrides stay
What’s allowed in overrides?
- Change text properties
- Fill or stroke
- Add or remove shadows
- Swap nested INSTANCES only
- But if you copy this instance, overrides stay
- Push overrides to main component
- Reset overrides
- Command + Right Click to see through