Skip to content

Headers

Each header is fully functional and responsive. You only need to edit the section at the top — no other code changes are necessary. Just copy and paste it into a component, and add that component wherever you like — it’s usually added to the layout.

src/layouts/Layout.astro
---
// Import
import MinimalHeader from "../components/MinimalHeader.astro";
---
<!doctype html>
<html lang="en">
<head>
...
</head>
<body>
<!-- Add Here -->
<MinimalHeader />
<main>
<slot />
</main>
</body>
</html>

A simple navigation bar with your site’s logo and the sections or pages of your project.

A navbar with your logo, links to pages and sections of your project, and social media links.

A navigation bar with a logo, navigation links, and social media icons with a singular touch.