Skip to content

Layout Components Overview

Layout components provide the structural elements for your pages.

ComponentPurpose
Header.astroSite header with navigation
Footer.astroSite footer with links
ThemeToggle.astroDark mode toggle
Analytics.astroAnalytics integration

Full-featured header with navigation, actions, and mobile menu:

<Header
showCta
cta={{ label: 'Get Started', href: '/signup' }}
showThemeToggle
/>

View Header documentation →

Flexible footer with multiple layouts:

<Footer layout="columns" columns={3} />

View Footer documentation →

Dark mode toggle component:

<ThemeToggle />

Conditionally loads analytics scripts:

<!-- Automatically included in BaseLayout if configured -->
<Analytics />