Complete the code to define a default slot in an Astro component.
<slot[1]></slot>The default slot in Astro is named "default" and is declared using name="default".
Complete the code to project content into a named slot called "header".
<Component><div slot=[1]>Title</div></Component>To project content into a named slot, the slot attribute must match the slot's name, here "header".
Fix the error in the slot usage by completing the blank with the correct syntax for a named slot in Astro.
<slot[1]></slot>slot instead of name.Named slots require the name attribute with the slot name in quotes, like name="header".
Fill both blanks to create a component that defines a named slot "footer" and projects content into it.
<slot[1]></slot> <Component> <div [2]>Footer content</div> </Component>
The slot in the component must be named with name="footer", and the content must use slot="footer" to project correctly.
Fill all three blanks to create a component with two named slots "header" and "main", and project content into both slots.
<slot[1]></slot> <slot[2]></slot> <Component> <h1 [3]>Welcome</h1> <p slot="main">Main content here</p> </Component>
The component defines slots with name="header" and name="main". The content uses slot="header" and slot="main" to project content correctly.
