Skip to content

Overlays, feedback, and data

Connection details

This native dialog closes with Escape or the Close button.

Press Esc to dismiss this popover.

Use nw-dialog on a native <dialog> and call showModal() to make the background inert. Add nw-dialog-drawer to dock the same anatomy to an edge. nw-popover styles a floating panel; pair it with the native popover attribute for light dismissal. Tooltips (nw-tooltip or data-tooltip) supplement a named trigger, never replace its name. For nw-toast, your code controls the live region, dismissal, and lifetime.

<dialog class="nw-dialog" aria-labelledby="dialog-title">
<header class="nw-dialog-header">
<h2 class="nw-dialog-title" id="dialog-title">Connection details</h2>
</header>
<form method="dialog" class="nw-dialog-footer">
<button class="nw-btn nw-btn-outline" autofocus>Close</button>
</form>
</dialog>

Use nw-progress for work with a start and finish, and nw-meter for a measurement in a known range. For work without a total, pair nw-spinner with a status message; use nw-skeleton to reserve the shape of content that will replace it. Don’t expose the skeleton as actual content to a screen reader.

Example delivery times
Route

Time

North13 ms
South27 ms
How are times shown?

The numeric column uses tabular figures and aligns to the end.

  1. Connect
  2. Check route

Use nw-table to compare rows, nw-accordion to disclose details, and nw-steps to show where a reader is in a sequence. Use nw-stat for a standalone reading that informs a decision, and nw-empty to explain why an empty result has no rows and what to do next.