Card

A contained surface for grouped content, with an optional cover, header and footer.

Content

Children render straight into the card's padded body. A Separator splits that content into parts.

Header, body and footer

The header, body and footer snippets lay out three bands; the footer holds the actions. header also takes a string, which Card wraps in a heading: for a node spec that carries a title and nothing more.

Cover

cover takes an image URL, drawn 16:9 above the header, or a snippet for anything more than an image.

Clickable and selected

With onclick the card is a button: it takes focus, and Enter or Space clicks it. aria-checked marks the chosen card in a set.

Examples

Children only

Project Atlas

A short description of what this project is about.

Active
Header, body and footer

Training run #142

Started 2 hours ago
Running

Fine-tuning Pi0 on robot-arm-v2 dataset.

Estimated completion: 4 hours

3 epochs / 12
A header from a string

Quick title

The header above came from a string.

A cover image

With cover image

The cover area is 16:9 by default.

A cover snippet
Custom cover content

Custom cover

Use the cover snippet when you need more than an image.

A clickable card

Click me

Clicked 0 times.

Click it, or focus it and press Enter.

A selected card

Selected

Tone shifts to success.

Split by a separator

Section A

Some content.

Section B

More content.