Etch component

Card 3

A card with an icon, a logo or an image, a title, a short text or richer content, and an action. The whole card can be one link, or it can hold links of its own.

Card 3

Copy Card 3

Configurator settings

Change a setting in the configurator to include it.

Optional. Copies the component under its own name, such as News Card Alpha for a site.

Documentation

A card with an icon, a logo or an image, a title, a short text or richer content, and an action. The whole card can be one link, or it can hold links of its own.

How to use it

  • Media picks what sits above the title: Icon (set in the Icon group, with its Source and Styles), Logo or Image (both from Image), or None.
  • Title and Title Tag: h3 by default, h2 for cards right under a page's title.
  • Text is a short paragraph. For more, such as a list or several links, use the content slot, and leave Text empty to use the slot alone.
  • Link is where the card goes. With Whole Card on (the default), a click anywhere on the card opens it, and the CTA group's Label, such as "Learn More", is its visible cue. With Whole Card off, only the CTA is a link. Without a link, the card has no action.

Good to know

  • With Whole Card on, links in the content slot still work: they sit above the card's link.
  • A logo keeps one height (--mac-card-3-logo-height, 2.5em), so a row of partner cards lines up. --mac-card-3-image-ratio sets the image's shape: by default, the card media ratio set in ACSS (16 / 9).
  • Give a logo's image the organization's name as its alt text in the media library, or leave it empty when the title names it.
  • See also MAC Card 1, a small link card with a title and an arrow, and MAC Card 2, with an image, a date and an excerpt, for posts and galleries.

Reference

Read from the component's JSON, so it's always current.

Loading the reference