Skip to content

Page header

The opener for inner pages. Add a breadcrumb, a surface band or a background image, and a meta row for articles.

Documentation

Everything you need to build with Samla.

  • title: the page h1, or use the title slot for markup such as an <em>
  • intro: a short lead
  • layout: stacked (default), split (title on one side, intro and meta on the other)
  • align: start (default), center; applies to the stacked layout
  • surface: light, alternate, brand, dark; a surface also adds more vertical padding
  • breadcrumb: list of { label, href }, rendered with Breadcrumb; the last item is the current page; leave it out for none
  • image: background image with a dark overlay and white text (overrides surface)
  • meta: { date, datetime, author, readingTime } for articles
<PageHeader
title="Documentation"
intro="Everything you need to build with Samla."
breadcrumb={[{ label: "Home", href: "/" }, { label: "Docs", href: "/docs/" }, { label: "Getting started" }]}
/>
surface="alternate", meta

Why we rebuilt Samla

What changed when the library moved to Astro components.

  • Samla team
  • 6 min read
align="center", surface="dark"

About Samla

An Astro-first library of elements, components and sections.

image, align="center"

Notes

Decisions and changes in the library, written down as they happen.

surface="brand", no breadcrumb

Contributing

How to add a piece to the library.

layout="split", title slot

Build with Samla

Everything you need to build with Samla.