Overlays, feedback, and data
Overlays
Section titled “Overlays”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>Loading and measurement
Section titled “Loading and measurement”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.
Data and disclosure
Section titled “Data and disclosure”| Route | Time |
|---|---|
| North | 13 ms |
| South | 27 ms |
How are times shown?
The numeric column uses tabular figures and aligns to the end.
- Connect
- 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.