Card

Usage

A header holds an h2 title, a p subtitle and an aside for buttons on the right. Content follows in section and footer.

Order #1042

Placed Oct 12, 2026 by Emma Wilson

3 items, $74.00 in total.

Updated 5 minutes ago

Header with a title, a subtitle and an action

The line under the header shows only when another part follows. The title, subtitle and action share a row, with the action on the right, centered vertically.

Shipping address

742 Evergreen Terrace, Springfield, OR 97477

Shipping address

Where this order is delivered

742 Evergreen Terrace, Springfield, OR 97477

Header with a figure, its change and a link

Add a strong to the header and the h2 becomes a small gray label above the figure. In the aside, the link sits above the span[data-trend].

Total revenue

$4,148.64

Compared with the previous 30 days.

Table card

A table that is a direct child of the card (or inside a .scroll-area when there are many columns) runs edge to edge. The header uses a ghost search field and filters. The footer has the result count on the left and pagination on the right.

Public: Yes
Product
Timeless Watch - 10 Edit
Magic Pen 3 0 Edit

67 results

Empty table card

When there is no data yet, use .empty in place of the table.

No products yet

Add your first product to start selling.

Needs attention: data-variant="warning"

A 2px warning-colored top border for a card that needs attention. danger, info and ok work the same way.

Payment disputed

The cardholder claims the order was not received.

Attributes

Attribute / element Values Description
.card article, section, div The card box. Every direct child gets padding and a divider above it
> header Card header: a two-column grid, text on the left, aside on the right
> header h2 / h3 Card title, 14px bold
> header p Grey subtitle under the title
> header > aside Buttons or badges on the right. Spans both rows when there is a title and a subtitle
> header > strong Large figure. Turns the h2 into a small gray label and stacks the aside vertically on the right
header [data-trend] up, down; empty = gray Change in the figure: up = ok color, down = danger color
> section, > div Content, with the same padding in every part
> footer Buttons on the right. The first p sits on the left in gray (such as a result count)
> .table, > .scroll-area > .table Edge-to-edge table. The first and last cells line up with the card padding
> .empty Empty state in place of a table
> .stat, > .stat-group Stat figures. See Stat
data-variant warning, danger, info, ok; omit for normal (default) 2px top border in the status color, for a card that needs attention
data-direction row; omit for stacked (default) Children sit side by side, separated by vertical lines. The first child is only as wide as its content (such as a date range picker next to a stat group)