Stage 06 · Component

Section plate

A number plate that follows you down the page and says where you are.

Live

The plate is live on this page. Scroll a little and it drops in at the top right, numbered with this page’s own sections.

Reasoning

Why it exists

A long single page needs a way back without a header bar eating the top of every screen. The plate takes the space of a sticker, shows the current section and opens into the full list on demand.

How it tracks

The current section is worked out from scroll position, not from intersection events, so it stays right after a jump link or a resize. It stays inert until the first section reaches the middle of the screen.

Leave it out when

The page has fewer than three sections or already has a visible menu. This page mounts a real one for its own sections: look at the top right corner.

Props

PropTypeWhat it does
sectionsrequiredreadonly PlateSection[]The id and label of each section, in page order. Numbers are derived.
labelsrequiredPlateLabelsNavigation name, the position text and the contact link at the bottom.
linksreadonly PlateLink[]Extra links listed after the sections, for places outside the page.

Sourcepackages/ui/src/components/SectionPlate.astro