VERIFICATION-0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF
INV-1042 · Extended localized content for verification and layout resilience
Acme Manufacturing · Due October 4, 2026
<forma-record-header>
Persistent record identity, status, context, breadcrumbs, and legal actions with mobile action collapse.
<forma-record-header>patterns/record-header.htmlA record header sits at the top of a record page and answers four questions at a glance: where am I (breadcrumbs), what is this (type and identifier), what state is it in (status as text), and what can I do (actions). Secondary actions collapse into a native details disclosure so the header stays compact without a script. Forma lays out identity on one side and actions on the other and stacks everything on phones; which actions appear, and whether they are legal for this record and user, is decided by the application.
minmax(0, 1fr)) and actions (auto), aligned to the bottom edge.details/summary with an absolutely positioned panel.The smallest correct markup: the canonical pattern from patterns/record-header.html inside its public tag. Copy this first, then adapt labels, names and state.
Rendered from the canonical pattern file.
Static specimen. Its buttons stand for application actions that the consuming application implements; this script-free documentation does not perform them. Its links point to placeholder destinations that do not exist on this site. Its controls are shown for their markup and appearance and cannot be operated here.
Acme Manufacturing · Due October 4, 2026
<forma-record-header class="forma-component-tag">
<header class="forma-record-header">
<div class="forma-record-header__main">
<nav aria-label="Breadcrumb"><a href="#home">Home</a> <span aria-hidden="true">/</span> <a href="#records">Records</a></nav>
<div class="forma-record-header__title">
<div><span class="forma-record-header__type">Invoice</span><h2>INV-1042</h2></div>
<span class="forma-status-lozenge" data-state="attention">Overdue</span>
</div>
<p>Acme Manufacturing · Due October 4, 2026</p>
</div>
<div class="forma-record-header__actions">
<button type="button">Primary action</button>
<details>
<summary>More</summary>
<div class="forma-record-header__menu"><button type="button">Export</button><button type="button">View history</button></div>
</details>
</div>
</header>
</forma-record-header>
Click or tap the code once to select all of it, then copy.
A case that is blocked on another team. Status is text with a symbol, the context line explains why, and the application renders only the actions that are legal now; there is no More menu because there are no secondary actions.
Static specimen. Its buttons stand for application actions that the consuming application implements; this script-free documentation does not perform them. Its links point to placeholder destinations that do not exist on this site. Its controls are shown for their markup and appearance and cannot be operated here.
Refund not received · Waiting on Payments team since 28 September
<forma-record-header class="forma-component-tag">
<header class="forma-record-header">
<div class="forma-record-header__main">
<nav aria-label="Case breadcrumb"><a href="#record-header-blocked-case-home">Support</a> <span aria-hidden="true">/</span> <a href="#record-header-blocked-case-cases">Cases</a></nav>
<div class="forma-record-header__title">
<div><span class="forma-record-header__type">Case</span><h2>CASE-4407</h2></div>
<span class="forma-status-lozenge" data-state="blocked">Blocked</span>
</div>
<p>Refund not received · Waiting on Payments team since 28 September</p>
</div>
<div class="forma-record-header__actions">
<button type="button">Add note</button>
</div>
</header>
</forma-record-header>
Click or tap the code once to select all of it, then copy.
Content stress: a long supplier name and a long reference number wrap in the identity column while the action column keeps its natural width. Four secondary actions are collapsed into the More disclosure.
Static specimen. Its buttons stand for application actions that the consuming application implements; this script-free documentation does not perform them. Its links point to placeholder destinations that do not exist on this site. Its controls are shown for their markup and appearance and cannot be operated here.
Hanseatische Maschinenbau- und Anlagentechnik GmbH · €48,200.00 · Requested by Lena Vogt
<forma-record-header class="forma-component-tag">
<header class="forma-record-header">
<div class="forma-record-header__main">
<nav aria-label="Purchase order breadcrumb"><a href="#record-header-long-identity-home">Procurement</a> <span aria-hidden="true">/</span> <a href="#record-header-long-identity-orders">Purchase orders</a></nav>
<div class="forma-record-header__title">
<div><span class="forma-record-header__type">Purchase order</span><h2 style="overflow-wrap: anywhere">PO-2026-EMEA-00041872-REV3</h2></div>
<span class="forma-status-lozenge" data-state="attention">Awaiting approval</span>
</div>
<p>Hanseatische Maschinenbau- und Anlagentechnik GmbH · €48,200.00 · Requested by Lena Vogt</p>
</div>
<div class="forma-record-header__actions">
<button type="button">Approve</button>
<button type="button">Request changes</button>
<details>
<summary>More</summary>
<div class="forma-record-header__menu">
<button type="button">Duplicate</button>
<button type="button">Export PDF</button>
<button type="button">View history</button>
<button type="button">Cancel order</button>
</div>
</details>
</div>
</header>
</forma-record-header>
Click or tap the code once to select all of it, then copy.
Each mobile example renders in its own document inside a real narrow viewport, so Forma's media and container queries run exactly as they would on a phone. Choose a width to compare.
At phone width identity comes first, then the primary action and the More disclosure as full-width rows.
Static specimen. Its buttons stand for application actions that the consuming application implements; this script-free documentation does not perform them. Its links point to placeholder destinations that do not exist on this site. Its controls are shown for their markup and appearance and cannot be operated here.
details, becomes full width, so each button and the summary are at least 2.75rem tall full-width touch targets.<forma-record-header class="forma-component-tag">
<header class="forma-record-header">
<div class="forma-record-header__main">
<nav aria-label="Visit breadcrumb"><a href="#record-header-mobile-visits">Visits</a></nav>
<div class="forma-record-header__title">
<div><span class="forma-record-header__type">Inspection</span><h2>Visit 12</h2></div>
<span class="forma-status-lozenge" data-state="ok">Complete</span>
</div>
<p>Pump station 4 · 2 October</p>
</div>
<div class="forma-record-header__actions">
<button type="button">Share report</button>
<details>
<summary>More</summary>
<div class="forma-record-header__menu"><button type="button">Reopen</button><button type="button">Download photos</button></div>
</details>
</div>
</header>
</forma-record-header>
Click or tap the code once to select all of it, then copy.
The canonical pattern in a true 320px viewport, the minimum width every Forma component must support without page-level horizontal scrolling.
Static specimen. Its buttons stand for application actions that the consuming application implements; this script-free documentation does not perform them. Its links point to placeholder destinations that do not exist on this site. Its controls are shown for their markup and appearance and cannot be operated here.
Forma components have no JavaScript API. Their public contract is the markup: native elements and attributes you write, and the CSS hooks below. The CSS hook table is generated from the built stylesheet, so it always matches the shipped implementation.
| Attribute | On | Values | Default | Description |
|---|---|---|---|---|
aria-label | breadcrumb nav | string | — | Names the breadcrumb navigation, for example "Breadcrumb"; keep it unique on the page. |
aria-hidden | breadcrumb separators | true | — | Hides the decorative slash separators from assistive technology. |
data-state | .forma-status-lozenge | ok | attention | blocked | unknown | absent | Adds the status symbol to the lozenge; the text remains the status. |
| Hook | Kind | Values or default | Description |
|---|---|---|---|
.forma-record-header | Block class | — | Root two-column grid with a border; identity on the start side, actions on the end. |
.forma-record-header__actions | Element class | — | Wrapping row of actions; a details inside it becomes the More disclosure. |
.forma-record-header__main | Element class | — | Identity column: breadcrumb nav, title row and a context paragraph. |
.forma-record-header__menu | Element class | — | The secondary actions panel inside details; absolutely positioned at the inline end with full-width buttons. |
.forma-record-header__title | Element class | — | Wrapping flex row holding the type and identifier block and the status. |
.forma-record-header__type | Element class | — | Small mono uppercase record type label shown above the identifier. |
| Keys | Result |
|---|---|
| Tab / Shift+Tab | Moves through breadcrumb links, actions and the More summary in source order. |
| Enter / Space on More | Opens or closes the secondary actions. Native details behavior. |
| Tab inside the panel | Moves through the secondary action buttons. There is no arrow-key navigation or Escape handling; the panel is not a menu widget. |
| Event | Description |
|---|---|
toggle | Native event fired by details when the More panel opens or closes. |
click | Native click on action buttons; the application performs the action. |
Not a form control.
| State | How it is expressed | Presentation |
|---|---|---|
| Status | .forma-status-lozenge with data-state | Text status with a symbol for ok, attention, blocked or unknown. |
| Secondary actions open | details[open] | The panel is shown below the More summary at the inline end. |
| Stacked | @media (max-width: 40rem) | One column; every action is full width. |
minmax(0, 1fr) auto; the identity column wraps long names while actions keep their natural width..forma-record-header__actions is 100% wide.overflow-wrap: anywhere or a shorter display form; the header does not truncate.Generated fault-injection specimens expose content, spacing, color-cue, and reduced-effective-contrast risks. They screen presentation robustness as engineering screens without claiming human-subject validation.