Patterns · Dashboard
ActivityRow
One entry in the "What we did" log: time, a small status icon, what happened and why. Stack rows in a card to show the last few days of backups, updates and scans.
import { ActivityRow } from '@statix/ui/activity-row';Examples
Basic
Time in mono, icon dot, title and description.
Backup created
2.4 GB, kept for 30 days. You can restore it at any time.
<script lang="ts">
import { ActivityRow } from '@statix/ui/activity-row';
import DatabaseIcon from '@lucide/svelte/icons/database';
</script>
<div class="w-full max-w-[640px]">
<ActivityRow
time="Today 03:10"
datetime="2026-11-18T03:10"
title="Backup created"
description="2.4 GB, kept for 30 days. You can restore it at any time."
tone="success"
>
{#snippet icon()}<DatabaseIcon />{/snippet}
</ActivityRow>
</div>Activity log
Rows in an <ol> inside a Card, divided by hairlines. On phones the time moves above the title.
Backup created
2.4 GB, kept for 30 days.
Virus scan: nothing found
We checked 4,812 files and the database.
We updated WordPress to 6.8
Tested on a copy first, all pages load. Backup taken right before.
Plugin update waiting for you
Contact Form 7 changes the form layout. We need your go-ahead.
<script lang="ts">
import { ActivityRow } from '@statix/ui/activity-row';
import * as Card from '@statix/ui/card';
import DatabaseIcon from '@lucide/svelte/icons/database';
import RefreshCwIcon from '@lucide/svelte/icons/refresh-cw';
import ShieldCheckIcon from '@lucide/svelte/icons/shield-check';
import TriangleAlertIcon from '@lucide/svelte/icons/triangle-alert';
</script>
<Card.Root class="w-full max-w-[728px] px-6 py-2">
<ol class="divide-y divide-border">
<li>
<ActivityRow
time="Today 03:10"
datetime="2026-11-18T03:10"
title="Backup created"
description="2.4 GB, kept for 30 days."
tone="success"
>
{#snippet icon()}<DatabaseIcon />{/snippet}
</ActivityRow>
</li>
<li>
<ActivityRow
time="Today 02:40"
datetime="2026-11-18T02:40"
title="Virus scan: nothing found"
description="We checked 4,812 files and the database."
>
{#snippet icon()}<ShieldCheckIcon />{/snippet}
</ActivityRow>
</li>
<li>
<ActivityRow
time="Yesterday 22:05"
datetime="2026-11-17T22:05"
title="We updated WordPress to 6.8"
description="Tested on a copy first, all pages load. Backup taken right before."
tone="success"
>
{#snippet icon()}<RefreshCwIcon />{/snippet}
</ActivityRow>
</li>
<li>
<ActivityRow
time="Mon 3 Nov"
datetime="2026-11-03"
title="Plugin update waiting for you"
description="Contact Form 7 changes the form layout. We need your go-ahead."
tone="warning"
>
{#snippet icon()}<TriangleAlertIcon />{/snippet}
</ActivityRow>
</li>
</ol>
</Card.Root>Tones
success for completed work, warning when something waits, neutral for routine entries.
Done
Waiting for your go-ahead
Routine check
Note from Jonas
<script lang="ts">
import { ActivityRow } from '@statix/ui/activity-row';
import CheckIcon from '@lucide/svelte/icons/check';
import ClockIcon from '@lucide/svelte/icons/clock';
import InfoIcon from '@lucide/svelte/icons/info';
import TriangleAlertIcon from '@lucide/svelte/icons/triangle-alert';
</script>
<div class="flex w-full max-w-[640px] flex-col">
<ActivityRow time="09:12" title="Done" tone="success">
{#snippet icon()}<CheckIcon />{/snippet}
</ActivityRow>
<ActivityRow time="09:05" title="Waiting for your go-ahead" tone="warning">
{#snippet icon()}<TriangleAlertIcon />{/snippet}
</ActivityRow>
<ActivityRow time="08:40" title="Routine check" tone="neutral">
{#snippet icon()}<ClockIcon />{/snippet}
</ActivityRow>
<ActivityRow time="08:00" title="Note from Jonas" tone="accent">
{#snippet icon()}<InfoIcon />{/snippet}
</ActivityRow>
</div>Guidelines
Do
- Say what we did, not what the system did: "We updated WordPress to 6.8".
- Add the reason or the proof in the description: "Tested on a copy first, all pages load."
- Pass datetime so the time is machine-readable.
Don't
- Don’t log every check. Show changes and anything the customer may ask about.
- Don’t use destructive for problems we already fixed. Use success and explain.
Accessibility
- The time renders as a <time> element; datetime gives it a machine-readable value.
- The icon dot is decorative and hidden from screen readers. The tone is not announced, so put the outcome in the title.
- Use an <ol> around the rows: the log is ordered.
API reference
ActivityRow
renders<div> and accepts its attributes| Prop | Type | Default |
|---|---|---|
time * | string Visible time. | – |
datetime | string Machine-readable time for <time>. | – |
title * | string What happened. | – |
description | string Detail in one or two sentences. | – |
tone | 'neutral' | 'success' | 'warning' | 'destructive' | 'accent' Colour of the icon dot. | 'neutral' |
icon | Snippet Icon inside the dot. | – |
children | Snippet Extra content under the description. | – |
ref bind | HTMLDivElement | null The root element. | – |
class | ClassValue Merged with the row classes; yours win. | – |
| Data attribute | Meaning |
|---|---|
data-slot="activity-row" | Root. Parts use activity-row-time, -icon, -text, -title, -description. |
data-tone | The current tone. |
activityRowVariants
The tailwind-variants slots behind ActivityRow.