Patterns · Dashboard
WebsiteRow
One website or domain per row: icon, domain, a status line and a status chip. Use it for the website list and for redirects and extra domains.
import { WebsiteRow } from '@statix/ui/website-row';Playground
Examples
Basic
With href the row links to the website page.
<script lang="ts">
import { WebsiteRow } from '@statix/ui/website-row';
</script>
<WebsiteRow
href="#yoga-berger.de"
domain="yoga-berger.de"
description="Backed up last night · all up to date · no viruses found"
status="All good"
/>Website list
Stack rows with a 12px gap inside a <ul>. The chip moves under the status line on phones.
<script lang="ts">
import { WebsiteRow } from '@statix/ui/website-row';
</script>
<ul class="flex flex-col gap-3 p-6 tablet:p-10">
<li>
<WebsiteRow
href="#yoga-berger.de"
domain="yoga-berger.de"
description="Backed up last night · all up to date · no viruses found"
status="All good"
/>
</li>
<li>
<WebsiteRow
href="#kurse.yoga-berger.de"
domain="kurse.yoga-berger.de"
description="WordPress 6.8 is ready. We test it on a copy first."
status="Update waiting"
statusVariant="warning"
/>
</li>
<li>
<WebsiteRow
href="#yogaberger.com"
domain="yogaberger.com"
description="Redirects to yoga-berger.de · renews on 12 March"
status="Redirect"
statusVariant="neutral"
/>
</li>
</ul>Statuses
success, warning, destructive and neutral. neutral drops the dot.
yoga-berger.de Everything checked at 03:10 All good
kurse.yoga-berger.de Certificate expires in 6 days Check soon
shop.yoga-berger.de Not reachable since 09:42. We are on it. Offline
yogaberger.com Redirects to yoga-berger.de Redirect
<script lang="ts">
import { WebsiteRow } from '@statix/ui/website-row';
</script>
<div class="flex w-full flex-col gap-3">
<WebsiteRow domain="yoga-berger.de" description="Everything checked at 03:10" status="All good" />
<WebsiteRow
domain="kurse.yoga-berger.de"
description="Certificate expires in 6 days"
status="Check soon"
statusVariant="warning"
/>
<WebsiteRow
domain="shop.yoga-berger.de"
description="Not reachable since 09:42. We are on it."
status="Offline"
statusVariant="destructive"
/>
<WebsiteRow
domain="yogaberger.com"
description="Redirects to yoga-berger.de"
status="Redirect"
statusVariant="neutral"
/>
</div>Guidelines
Do
- Write the status line as facts: "Backed up last night · all up to date · no viruses found".
- Keep chip labels to two or three words: "All good", "Update waiting", "Offline".
Don't
- Don’t use warning or destructive for things the customer cannot act on. Use neutral.
- Don’t put buttons in the row. Link to the website page instead.
Accessibility
- With href the row is one <a>. Its name is the domain, the status line and the chip text, in that order.
- The status dot inside the chip is decorative; the chip text carries the state.
- Wrap several rows in a <ul> so screen readers announce the count.
API reference
WebsiteRow
renders<a> or <div> and accepts its attributes| Prop | Type | Default |
|---|---|---|
domain * | string Domain or site name. | – |
description | string Status line under the domain. | – |
status | string Text in the status chip. | – |
statusVariant | 'success' | 'warning' | 'destructive' | 'neutral' Colour of the chip. | 'success' |
href | string Renders the row as a link with a chevron. | – |
icon | Snippet Replaces the globe icon. | – |
ref bind | HTMLElement | null The root element. | – |
class | ClassValue Merged with the row classes; yours win. | – |
| Data attribute | Meaning |
|---|---|
data-slot="website-row" | Root. Parts use website-row-icon, -domain, -description. |