Pack
Dashboard pack
Numbers to watch: amounts in a range, charts, devices and their status.
Adding it
npx prongs add dashboardCopies the 6 intents below into your registry, skipping any it already has, and regenerates PRONGS.md. A “not for” line that points at an intent your registry does not have is left out.
Intents
layout.* Layout
Next to the starter
The starter intents this pack’s intents are told apart from. Each pack intent’s page says when to use which.
layout.loadingStands in for content that is still loading: a full-width line of text unless you give it the shape of what will appear
<div>text.statA number that stands out on its own: a metric, a result, a price, an order total
<p>text.indicatorMarks something as new or unread, or shows a status, with no word or number. Give it an aria-label, like "Unread" or "Charging"; data-tone="success", "info", "warning", "danger" or "muted" colours a status; data-busy shows it is in progress
<span>layout.labelledAn icon, avatar or logo beside its text: a person’s photo and name, an icon and its label. The text shrinks and wraps; the icon keeps its size
<div>
For registry authors
Pack intent. prongs add dashboard puts the dashboard pack’s intents in your registry. They are then yours like the starter intents: rename, restyle and add to them, and see them with prongs add gallery.