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
Project Atlas
A short description of what this project is about.
ActiveTraining run #142
Started 2 hours agoFine-tuning Pi0 on robot-arm-v2 dataset.
Estimated completion: 4 hours
Quick title
The header above came from a string.
With cover image
The cover area is 16:9 by default.
Custom cover
Use the cover snippet when you need more than an image.
Click me
Clicked 0 times.
Click it, or focus it and press Enter.
Selected
Tone shifts to success.
Section A
Some content.
Section B
More content.