Complete the code to import a layout component in Astro.
import [1] from '../layouts/BaseLayout.astro';
The layout component is named BaseLayout and must be imported exactly as defined.
Complete the code to wrap page content with the layout component in Astro.
<[1]> <h1>Welcome to my site</h1> </[1]>
The layout component tag must match the imported layout name BaseLayout to wrap the content properly.
Fix the error in passing props to the layout component in Astro.
<BaseLayout [1]={'dark'}> <p>Content here</p> </BaseLayout>
Props in Astro are case-sensitive and should match the layout's expected prop name, which is theme.
Fill both blanks to define a layout component with a slot for page content in Astro.
export default function [1]() { return ( <div class="container"> [2] </div> ); }
<content /> instead of <slot />.The layout component is named BaseLayout and uses <slot /> to render child content inside.
Fill all three blanks to create a layout component that accepts a title prop and renders children in Astro.
export default function [1]([2]) { return ( <main> <h1>{title}</h1> [3] </main> ); }
<slot /> for children.The layout component is named BaseLayout. It destructures the title prop and uses <slot /> to render child content.
