Layout Components Overview
Layout components provide the structural elements for your pages.
Available Components
Section titled “Available Components”| Component | Purpose |
|---|---|
Header.astro | Site header with navigation |
Footer.astro | Site footer with links |
ThemeToggle.astro | Dark mode toggle |
Analytics.astro | Analytics integration |
Header
Section titled “Header”Full-featured header with navigation, actions, and mobile menu:
<Header showCta cta={{ label: 'Get Started', href: '/signup' }} showThemeToggle/>Footer
Section titled “Footer”Flexible footer with multiple layouts:
<Footer layout="columns" columns={3} />ThemeToggle
Section titled “ThemeToggle”Dark mode toggle component:
<ThemeToggle />Analytics
Section titled “Analytics”Conditionally loads analytics scripts:
<!-- Automatically included in BaseLayout if configured --><Analytics />