Skip to content
Statix Design System

Patterns · Dashboard

ProductCard

A large card that leads into one product: websites, email, domains or invoices. The start screen shows four in a 2×2 grid, the first one in navy.

import { ProductCard } from '@statix/ui/product-card';

Playground

Websites

3 websites · WordPress hosting

Pick a website to open its content, backups and settings.

Controls
<ProductCard
	href="/websites"
	title="Websites"
	meta="3 websites · WordPress hosting"
	description="Pick a website to open its content, backups and settings."
	linkLabel="Go to your websites"
	tone="navy"
>
	{#snippet icon()}<LayoutGridIcon />{/snippet}
</ProductCard>

Examples

Basic

Title, facts, description and a footer link. The whole card is clickable.

Email

5 mailboxes · 2 forwards

Read email, set up devices or add another address.

<script lang="ts">
	import { ProductCard } from '@statix/ui/product-card';
	import MailIcon from '@lucide/svelte/icons/mail';
</script>

<div class="w-full max-w-[548px]">
	<ProductCard
		href="#email"
		title="Email"
		meta="5 mailboxes · 2 forwards"
		description="Read email, set up devices or add another address."
		linkLabel="Choose a mailbox"
	>
		{#snippet icon()}<MailIcon />{/snippet}
	</ProductCard>
</div>

Start screen grid

Four cards, two per row from the tablet breakpoint. Only the first one gets a tone. Cards in a row share the same height.

Websites

3 websites · WordPress hosting

Pick a website to open its content, backups and settings.

Email

5 mailboxes · 2 forwards

Read email, set up devices or add another address.

Domains

6 domains

Addresses, redirects and the next renewals with prices.

Invoices

Receipts & payments

Download invoices and see your payments.

<script lang="ts">
	import { ProductCard } from '@statix/ui/product-card';
	import GlobeIcon from '@lucide/svelte/icons/globe';
	import LayoutGridIcon from '@lucide/svelte/icons/layout-grid';
	import MailIcon from '@lucide/svelte/icons/mail';
	import ReceiptEuroIcon from '@lucide/svelte/icons/receipt-euro';

	const products = [
		{
			icon: LayoutGridIcon,
			title: 'Websites',
			meta: '3 websites · WordPress hosting',
			description: 'Pick a website to open its content, backups and settings.',
			href: '#websites',
			linkLabel: 'Go to your websites'
		},
		{
			icon: MailIcon,
			title: 'Email',
			meta: '5 mailboxes · 2 forwards',
			description: 'Read email, set up devices or add another address.',
			href: '#email',
			linkLabel: 'Choose a mailbox'
		},
		{
			icon: GlobeIcon,
			title: 'Domains',
			meta: '6 domains',
			description: 'Addresses, redirects and the next renewals with prices.',
			href: '#domains',
			linkLabel: 'Go to your domains'
		},
		{
			icon: ReceiptEuroIcon,
			title: 'Invoices',
			meta: 'Receipts & payments',
			description: 'Download invoices and see your payments.',
			href: '#invoices',
			linkLabel: 'Open invoices'
		}
	];
</script>

<div class="grid gap-6 p-6 tablet:grid-cols-2 tablet:p-10">
	{#each products as { icon: Icon, ...product }, i (product.title)}
		<ProductCard {...product} tone={i === 0 ? 'navy' : 'default'}>
			{#snippet icon()}<Icon />{/snippet}
		</ProductCard>
	{/each}
</div>

Tones

Any card tone works. navy is the default highlight; use the others when a product has its own colour.

Websites

Tone navy

Pick a website to open its content, backups and settings.

Websites

Tone plum

Pick a website to open its content, backups and settings.

Websites

Tone moss

Pick a website to open its content, backups and settings.

Websites

Tone clay

Pick a website to open its content, backups and settings.

Websites

Tone slate

Pick a website to open its content, backups and settings.

<script lang="ts">
	import { ProductCard } from '@statix/ui/product-card';
	import LayoutGridIcon from '@lucide/svelte/icons/layout-grid';

	const tones = ['navy', 'plum', 'moss', 'clay', 'slate'] as const;
</script>

<div class="grid gap-6 p-6 sm:grid-cols-2 tablet:p-10 lg:grid-cols-3">
	{#each tones as tone (tone)}
		<ProductCard
			{tone}
			href="#{tone}"
			title="Websites"
			meta="Tone {tone}"
			description="Pick a website to open its content, backups and settings."
			linkLabel="Go to your websites"
		>
			{#snippet icon()}<LayoutGridIcon />{/snippet}
		</ProductCard>
	{/each}
</div>

Guidelines

Do

  • Put live facts in meta: "3 websites · WordPress hosting", "6 domains".
  • Write the link label as where it goes: "Go to your websites", "Open invoices".
  • Use ProductCard for entry points and ActionTile for tasks. ProductCard is a separate pattern because it has a footer link and a card radius; ActionTile is a 16px tile with a chevron.

Don't

  • Don’t tone more than one card in a grid.
  • Don’t add buttons inside the card. Everything except the link is plain text.

Accessibility

  • The footer link is the only interactive element. A ::after layer stretches it over the card, so a click anywhere follows the link while screen readers hear only the link label.
  • The title is an <h3> by default. Set headingLevel to fit the page outline.
  • The focus ring is drawn around the whole card.

API reference

ProductCard

renders <div> (Card) and accepts its attributes
PropTypeDefault
title * string

Product name.

–
meta string

Short facts under the title.

–
description string

What the customer finds behind the link.

–
href * string

Link target.

–
linkLabel * string

Text of the footer link.

–
tone 'default' | 'navy' | 'plum' | 'moss' | 'clay' | 'slate'

default is white. A tone fills the card and turns the text white.

'default'
headingLevel 2 | 3 | 4

Heading level of the title.

3
icon Snippet

Icon in the round well.

–
children Snippet

Extra content between description and footer.

–
ref bindHTMLDivElement | null

The root element.

–
class ClassValue

Merged with the card classes; yours win.

–
Data attributeMeaning
data-slot="product-card"Root. Parts use product-card-header, -icon, -title, -meta, -description, -footer, -link.
data-toneSet when a tone is active.

productCardVariants

The tailwind-variants slots behind ProductCard.