Card
Content container for grouping related information. Supports image/media slots, header/body/footer structure, interactive (clickable) and horizontal layouts, and a selection state.
A short description of the card content goes here.
Anatomy
Card body text.
- 1 Media slot — image or arbitrary media content
- 2 Header — title and optional metadata
- 3 Body — description or primary content
- 4 Footer — actions or supplemental information
Options
Layout
Default stacked layout.
Side-by-side media and content.
Interactive
Clickable card.
Hover state.
Selection state.
Table of options
| Property | Values | Default |
|---|---|---|
| layout | vertical / horizontal | vertical |
| interactive | true / false | false |
| selected | true / false | false |
| href | URL / none | none |
Behaviors
Link variant
When href is provided the card renders as an <a> element, making the entire surface navigable. Combine with interactive for hover/active styles.
The border weight increases on the selected side to indicate state.
Selection
Adding is-selected / selected highlights the card border with the brand selection color and increases the border weight. Use in card-picker or grid-selection patterns.
Usage guidelines
Use slots consistently
Description that supports the title.
Do
Use the header for the title, body for supporting content, and footer for actions.
Description and action link mixed in body.
Don't
Don't place titles and actions in the body. Use dedicated slots for predictable layout.
Content standards
- Keep card titles short — 1–5 words.
- Body copy should support but not repeat the title.
- Footer actions use the button component; limit to 1–2 actions.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Moves focus to the interactive card |
| Enter / Space | Activates the card (for link or button-role cards) |
Accessibility
- Non-interactive cards use
<article>— a landmark element that can be navigated by screen readers. - Interactive cards add
tabindex="0"for keyboard focus; link cards use<a>for native keyboard support. is-selectedcards includearia-selected="true"to convey state to assistive technologies.- Media images must have meaningful
alttext; decorative images should usealt="".
Theming
Card adapts across brands and modes through semantic tokens. Use the hero switches above.
For the full theming architecture see Foundations: Theming.
Design checklist
--uif-card-*).