Key-value grids
Arrange operational facts into compact responsive metric pairs.
Live preview
- Environment
- Production
- Release
- v2.4.0
- Instances
- 08
- Uptime target
- 99.9%
HTML
<dl class="xsh-kv-grid">
<div>
<dt>Environment</dt>
<dd>Production</dd>
</div>
<div>
<dt>Release</dt>
<dd>v2.4.0</dd>
</div>
<div>
<dt>Instances</dt>
<dd>08</dd>
</div>
<div>
<dt>Uptime target</dt>
<dd>99.9%</dd>
</div>
</dl>Installation & markup
Include the local stylesheet and script once on the page, then place the component inside a data-xsh-ui root. The example above works without a build system.
<link rel="stylesheet" href="/dist/xshna-ui.css">
<div data-xsh-ui>
<!-- Add the HTML example above -->
</div>
<script defer src="/dist/xshna-ui.js"></script>Component API
Public classes, attributes and hooks used by this example. Keep the xsh- prefix intact.
| Identifier | Contract |
|---|---|
xsh-kv-grid | Used by the example markup and component styles or behavior. |
dl | Used by the example markup and component styles or behavior. |
dt | Used by the example markup and component styles or behavior. |
dd | Used by the example markup and component styles or behavior. |
Accessibility & keyboard
Semantic description list is readable in source order.
Implementation note. Use realistic units and label illustrative values as samples.
Interaction contract
Behavioral components use the shared delegated runtime; visual-only primitives rely on semantic HTML and CSS. Runtime controls emit bubbling xsh:* CustomEvents; bind application handlers to those events when server persistence, API data or navigation is required.