Please refer to
https://www.drupal.org/node/3446052 โ
Card component definition:
A card is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options. If youโre familiar with Bootstrap 3, cards replace our old panels, wells, and thumbnails. Similar functionality to those components is available as modifier classes for cards.
Variants:
Markup: (TBD)
<div class="card" style="width: 18rem;">
<img class="card-img-top" src="..." alt="Card image cap">
<div class="card-body">
<span class="card-eyebrow">New!</h5>
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
Discussion / Talking points:
Shema: Should SDCs morph dynamically based on data? Example put as many optional "fields" where data can be printed if present, but won't break the layout if it is missing.
Nesting components?
Scenario: A call to action can look like a link, can be underlined or not, can look like a button, can have an icon.
Does SDC support nesting other components?