Patterns · Dashboard
HealthBand
The navy banner at the top of a website page. It answers "Is my website OK?" in one headline, says what we checked, and links to the activity log.
import { HealthBand } from '@statix/ui/health-band';Playground
All good. We checked last night.
Backup at 03:10, virus scan at 02:40, all programs up to date. You do not need to do anything.
What we did recently<HealthBand />Examples
Basic
Status chip, headline, description and a light button. The art shows from 768px container width.
All good. We checked last night.
Backup at 03:10, virus scan at 02:40, all programs up to date. You do not need to do anything.
What we did recently<script lang="ts">
import { HealthBand } from '@statix/ui/health-band';
</script>
<div class="p-6 tablet:p-10">
<HealthBand
status="All good"
title="All good. We checked last night."
description="Backup at 03:10, virus scan at 02:40, all programs up to date. You do not need to do anything."
actionLabel="What we did recently"
actionHref="#activity"
/>
</div>With stat tiles
Pass StatTiles as children for the mobile start screen. Hide the art and use size="sm" tiles.
Your website is running.
Last backup
Today, 03:10
30 backups
WordPress
Up to date
All plugins current
Virus scan
No viruses
Checked 02:40
Uptime
100 %
No outages
<script lang="ts">
import { HealthBand } from '@statix/ui/health-band';
import { StatTile } from '@statix/ui/stat-tile';
</script>
<div class="mx-auto max-w-[390px] p-6">
<HealthBand status="All good" title="Your website is running." hideArt>
<div class="grid w-full grid-cols-2 gap-3">
<StatTile size="sm" label="Last backup" value="Today, 03:10" note="30 backups" />
<StatTile size="sm" label="WordPress" value="Up to date" note="All plugins current" />
<StatTile size="sm" label="Virus scan" value="No viruses" note="Checked 02:40" />
<StatTile size="sm" label="Uptime" value="100 %" note="No outages" />
</div>
</HealthBand>
</div>With a website preview
Replace the art with any content through the art snippet, for example a BrowserPreview.
One website, one domain. Both are running.
yoga-berger.de was backed up at 03:10, all programs are up to date and the virus scan found nothing.
Yoga in Hamburg-Eppendorf
Hatha, Yin and prenatal classes.
<script lang="ts">
import { BrowserPreview } from '@statix/ui/browser-preview';
import { Button } from '@statix/ui/button';
import { HealthBand } from '@statix/ui/health-band';
import ExternalLinkIcon from '@lucide/svelte/icons/external-link';
</script>
<div class="p-6 tablet:p-10">
<HealthBand
status="Online"
title="One website, one domain. Both are running."
description="yoga-berger.de was backed up at 03:10, all programs are up to date and the virus scan found nothing."
>
{#snippet actions()}
<Button variant="light" href="#site">Go to the website</Button>
<Button variant="on-tone" href="https://yoga-berger.de">
Open live site
<ExternalLinkIcon data-icon="inline-end" />
</Button>
{/snippet}
{#snippet art()}
<BrowserPreview url="yoga-berger.de" class="mr-10 h-[240px] w-[340px] border-white/20">
<div class="flex h-full flex-col">
<div class="flex h-10 items-center justify-between bg-card px-4 text-label text-ink">
Yoga Berger <span class="font-normal text-ink-2">Classes · Prices · Contact</span>
</div>
<div class="flex flex-1 flex-col justify-center gap-2 bg-tone-moss px-4 text-white">
<p class="text-subtitle font-semibold">Yoga in Hamburg-Eppendorf</p>
<p class="text-small text-white/85">Hatha, Yin and prenatal classes.</p>
</div>
</div>
</BrowserPreview>
{/snippet}
</HealthBand>
</div>Tones
navy is the healthy default. Use a different tone for a site that is in a special state, for example moss while we move it.
We are moving your website.
The old site stays online until the move is done. Expected today at 18:00.
See the stepsYour new website is ready to look at.
It runs on a test address. Nothing changes for visitors until you approve it.
Open the test site<script lang="ts">
import { HealthBand } from '@statix/ui/health-band';
</script>
<div class="flex flex-col gap-6 p-6 tablet:p-10">
<HealthBand
tone="moss"
status="Moving"
title="We are moving your website."
description="The old site stays online until the move is done. Expected today at 18:00."
actionLabel="See the steps"
actionHref="#move"
/>
<HealthBand
tone="plum"
status="New"
title="Your new website is ready to look at."
description="It runs on a test address. Nothing changes for visitors until you approve it."
actionLabel="Open the test site"
actionHref="#staging"
/>
</div>Guidelines
Do
- Write the headline as the answer: "All good. We checked last night."
- Name times and results in the description so the customer does not have to look further.
- Keep one HealthBand per page, at the top.
Don't
- Don’t use the band for errors. Show an Alert above it and keep the band calm.
- Don’t add more than one button.
Accessibility
- The title is an <h2> by default; use headingLevel={1} when the band carries the page heading.
- The default art is an SVG with aria-hidden="true".
- White text on all tone fills passes WCAG AA; the description uses 80% white, which still clears 4.5:1 on navy.
API reference
HealthBand
renders<div> (Card) and accepts its attributes| Prop | Type | Default |
|---|---|---|
status | string Short status in the chip. | – |
title * | string The headline. | – |
description | string What was checked and when. | – |
actionLabel | string Label of the default light button. | – |
actionHref | string Link of the default button. Both are needed. | – |
tone | 'navy' | 'plum' | 'moss' | 'clay' | 'slate' Card tone. | 'navy' |
headingLevel | 1 | 2 | 3 Heading level of the title. | 2 |
hideArt | boolean Hides the art on the right. | false |
art | Snippet Replaces the default art. | – |
actions | Snippet Replaces the default button. | – |
children | Snippet Content under the description. | – |
ref bind | HTMLDivElement | null The root element. | – |
class | ClassValue Merged with the band classes; yours win. | – |
| Data attribute | Meaning |
|---|---|
data-slot="health-band" | Root. Parts use health-band-content, -title, -description, -actions, -art-frame. |
data-tone | The current tone. |
HealthBand.Art
renders<svg> and accepts its attributesThe default decorative SVG, exported for reuse. It takes its colour from currentColor.
| Prop | Type | Default |
|---|---|---|
class | ClassValue Merged with the SVG classes. | – |