Component
Card
Published on
Description
The Card component groups related content and actions into a single visual container. Cards typically display a preview image, heading, short description, and a call-to-action link.
Use cards when presenting collections of similar items such as articles, products, or features. Avoid cards for single items where a simpler layout would suffice.
Example
Accessibility
- The card heading contains the primary link, making the entire card purpose clear to screen readers.
- The call-to-action text uses
aria-describedbyto associate it with the card, andaria-hidden="true"to avoid duplicate announcements. - Images should include meaningful
alttext or an emptyalt=""for decorative images.
References
- Block Links, Cards, Clickable Regions, Etc. (opens in new tab) — Adrian Roselli
- Don't Wrap Figure in a Link (opens in new tab) — Adrian Roselli
Related
Variables
None