Stage 09 · Component

Masthead

The wordmark at reading size, with the navigation beside it.

Live

Reasoning

Why it exists

Inner pages need the brand and a way around without the weight of the poster. The wordmark keeps the two tone split and the tilt, at a size that fits in a header.

Language aware

It receives the locale and the alternate page, so the language switch points at the equivalent page when one exists and says so when it falls back.

Leave it out when

The poster is on the page. One wordmark per screen.

Props

PropTypeWhat it does
wordmarkrequiredstringThe brand text.
hrefrequiredstringWhere the brand links to.
eyebrowstringA small chip above the wordmark.
linksreadonly { label; href }[]Navigation links shown before the controls.
localeLocaleLanguage of the labels. Defaults to en.
alternateLocaleAlternateThe same page in the other language, for the switch.

Sourcepackages/ui/src/components/Masthead.astro