Page Header
Show where a record sits, its current status and what you can do with it.
acme-production
LiveAcme Corporation · Europe West · Updated 4 minutes ago
HTML
<header class="mero-page-head">
<nav class="mero-breadcrumbs" aria-label="Breadcrumb">
<ol>
<li><a href="/components">Environments</a></li>
<li aria-current="page">acme-production</li>
</ol>
</nav>
<div>
<div class="mero-page-head-title">
<h1>acme-production</h1>
<span class="mero-badge mero-badge-success">Live</span>
</div>
<p>Acme Corporation · Europe West · Updated 4 minutes ago</p>
</div>
<div class="mero-page-head-actions">
<button class="mero-button mero-button-outline" type="button" data-mero-toast="Suspend requested">Suspend</button>
<a class="mero-button mero-button-primary" href="/components/typed-confirmation">Deploy release</a>
</div>
</header>Put Breadcrumbs first; they take the whole first row. Wrap the h1 and its status badge in mero-page-head-title so the badge follows the title and wraps with it. Keep the badge outside the h1 so the heading’s name stays the record’s name. The meta line is the p after the title row.
Use in your app
Copy these tags into your page head once. Serve the files at the paths shown, then add the example’s template to your page.
Page assets
<link rel="stylesheet" href="/mero.css">
<script defer src="/mero.js"></script>