Card
A rectangle grouping an image, title, text and actions about one thing, like a product or article.
<article>When to use it
For a set of similar items: products, articles, projects.
Common mistake
Don’t wrap every piece of content in a card; hierarchy gets lost.
Accessibility
If the whole card is clickable, use one link and don’t nest other buttons inside it.
Name in code
| HTML/CSS | <article> |
|---|---|
| React | <Card> |
| Jetpack Compose | Card / ElevatedCard / OutlinedCard |
| SwiftUI | GroupBox / custom VStack |
Ready prompt for your coding agent
Add a Card to this screen.
What it is: A rectangle grouping an image, title, text and actions about one thing, like a product or article.
Implement with: <article> (HTML/CSS).
Accessibility: If the whole card is clickable, use one link and don’t nest other buttons inside it.
When to use it: For a set of similar items: products, articles, projects.
Avoid: Don’t wrap every piece of content in a card; hierarchy gets lost.
Reuse the project's existing design tokens, spacing and component conventions.
Or compose a whole page from this element and others →
Prompts are in English for the most precise results with coding agents.