Complete the code to create a nested component in Figma.
const Button = createComponent({ type: 'button', children: [1] });The Text component is commonly nested inside a Button to show the label.
Complete the code to reference a nested component inside a main component.
const Card = createComponent({ children: [[1]] });The Header is often nested inside a Card component to show the title or main info.
Fix the error in the nested component declaration.
const Modal = createComponent({ children: [1] });The children property expects an array of components, so square brackets [] are required.
Fill both blanks to correctly nest components with props.
const ListItem = createComponent({ type: 'list-item', children: [[1]], props: { text: [2] } });The Text component is nested inside the list item, and the text prop is set to 'Item 1'.
Fill all three blanks to create a nested component with multiple children and props.
const Toolbar = createComponent({ children: [[1], [2]], props: { size: [3] } });The Toolbar nests a Button and an Icon as children, and the size prop is set to 'large'.
