xxshna.ui
V 1.1.0Get started ↗
Components/Overlays

Notification panels

Present persistent status history without relying on transient toasts.

Catalog · 1.1HTML, CSS & optional JSNo runtime dependencies

Live preview

Interactive exampleOpen playground ↗
Notifications2 new
  • Build completedSample system update · 10 min ago
  • Review requestedExample notification · 1 hr ago
HTML
<section class="xsh-notification-panel" aria-label="Recent notifications">
<div class="xsh-panel-head">
<strong>Notifications</strong>
<span class="xsh-badge xsh-badge--primary">2 new</span>
</div>
<ul>
<li>
<span class="xsh-dot" style="color:var(--xsh-success)">
</span>
<div>
<strong>Build completed</strong>
<small>Sample system update · 10 min ago</small>
</div>
</li>
<li>
<span class="xsh-dot" style="color:var(--xsh-primary)">
</span>
<div>
<strong>Review requested</strong>
<small>Example notification · 1 hr ago</small>
</div>
</li>
</ul>
</section>

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-notification-panelUsed by the example markup and component styles or behavior.
xsh-panel-headUsed by the example markup and component styles or behavior.

Accessibility & keyboard

The labelled section contains a semantic list.

Implementation note. Notification data is static in the library; connect actual feeds yourself.

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.