Skip to content

Card Group

Card groups are implemented by adding the .card class to an element with [role=group] attribute which will make the element and its children look like a Card List except stacked horizontally.

Basic Usage

You can indicate that a certain item is active by using aria-current="true".

live preview
editable html
<div class="card" role="group">
  <span>
    Processed
  </span>
  <span>
    Shipped
  </span>
  <span aria-current="true">
    In route
  </span>
  <span aria-disabled="true">
    Delivered
  </span>
</div>

Intent Variants

To convey intent and importance, card lists can be styled with different variants:

live preview
See code

Modifiers

.ghost creates transparent background card lists with colored text and borders

live preview
See code

.subtle creates card lists with a more muted appearance.

live preview
See code

.striped creates card lists with alternating background colors for better readability.

live preview
See code

Variants applied individually to an item

You can also use variant classes on individual items to indicate their intent and importance.

live preview
See code