Card component (Default component library for the experience builder)

Created on 8 May 2024, 24 days ago
Updated 13 May 2024, 19 days ago

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?

๐Ÿ“Œ Task
Status

Active

Component

Code

Created by

๐Ÿ‡ฒ๐Ÿ‡ฝMexico rmontero CMDX

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024