xxshna.ui
V 1.1.0Get started ↗
Components/Data display

Cards

Group information and related actions inside a clear, reusable surface.

Catalog · 1.1HTML, CSS & optional JSNo runtime dependencies

Live preview

Interactive exampleOpen playground ↗

Production workspace

Manage deployment access and team configuration.

All services operationalEnterprise
HTML
<div class="xsh-card xsh-card--raised" style="width:100%;max-width:460px">
<div class="xsh-card__header">
<h3 class="xsh-card__title">Production workspace</h3>
<p class="xsh-card__description">Manage deployment access and team configuration.</p>
</div>
<div class="xsh-card__body">
<div class="xsh-row" style="justify-content:space-between">
<span class="xsh-indicator xsh-indicator--success">All services operational</span>
<span class="xsh-badge">Enterprise</span>
</div>
</div>
<div class="xsh-card__footer">
<button class="xsh-button xsh-button--secondary" data-xsh-toast="info" data-xsh-message="This example is a UI demo. Connect your own settings screen.">View settings →</button>
</div>
</div>

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.

IdentifierContract
xsh-cardUsed by the example markup and component styles or behavior.
xsh-card--raisedUsed by the example markup and component styles or behavior.
xsh-card__headerUsed by the example markup and component styles or behavior.
xsh-card__bodyUsed by the example markup and component styles or behavior.
xsh-card__footerUsed by the example markup and component styles or behavior.

Accessibility & keyboard

Use meaningful headings inside cards. Buttons and links use standard native keyboard behavior.

Implementation note. Avoid placing a clickable card wrapper around other interactive children.

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.