Complete the code to define a slot in a Figma component.
<Component> <[1] name="header" /> </Component>
The Slot element defines a flexible placeholder inside a Figma component where users can insert custom content.
Complete the code to insert content into a named slot in a Figma component instance.
<ComponentInstance> <[1] slot="header"> <Text>Welcome</Text> </[1]> </ComponentInstance>
To insert content into a named slot, you wrap the content inside a Slot element with the matching slot name.
Fix the error in the slot usage by completing the code correctly.
<Component>
<Slot name=[1] />
</Component>The slot name must be a string literal enclosed in double quotes to be valid JSX syntax.
Fill both blanks to create a component with two named slots.
<Component> <[1] name=[2] /> <Slot name="footer" /> </Component>
Use the Slot element with the slot name as a string in quotes to define named slots.
Fill all three blanks to insert content into multiple slots in a component instance.
<ComponentInstance> <[1] slot=[2]> <Text>Title</Text> </[1]> <[3] slot="footer"> <Text>Contact info</Text> </[3]> </ComponentInstance>
Use the Slot element with the correct slot attribute values in quotes to insert content into named slots.