Cards are a structure for organizing thematic groups of content or features within a template.

Usage

A card is a thematic grouping of content, typically with a heading. They are sometimes sequential, but never hierarchical. Use cards when you need to show multiple groups of similar content that live at the same level, such as audience conditions or experiences in a campaign. Cards can be re-ordered, but they can't be sorted.

Bordered Cards

Sometimes, to highlight a card that is not full width, you can use a border. This helps visually separate one card from other cards. (When a card is too big or too small, sometimes borders get lost and might not make sense.)

⌘ Cmd + ⌥ Option + 1

Properties

propertypropTyperequireddefaultdescription
shadowbool-falseDisplay a subtle shadow around card.
childrenstringyes-Elements that appears within the component
onClosefunc--method to invoke when a close element is clicked
testSectionstring--For automated testing only.
titlestringyes-What is the card title

Best Practices

Do

Use cards to visually organize chunks of content

Use cards for content that's at the same level

Don't

Use side borders on cards that are full width