Description
- Single subject focus: A card is a container for content and actions about a single subject.
- Concise summary: A card provides a quick preview and overview of the content it links to.
- Interactivity: The card itself is interactive and it should represent a single primary action. Any additional interactive elements must be placed in the optional footer to avoid nested interactions.
- Navigation: A card is always interactive and can be used to open another page, such as a detail page.
- Visual appeal: A card often has a distinct visual style that sets it apart from other content elements.
- Flexibility: A card can be used to display a variety of content, such as images, text, and data.
- Layout: A card can use the Layout component (flexbox CSS model, through the Card: flexbox variant) to achieve responsive designs by arranging swappable blocks within flexible containers.
Component preview
No live controls configured for this component.
Anatomy
A card can contain any type of content
Anatomy
Size
General
- The card height adjusts to the content it contains.
- The default card width is 100 percent of the parent container.
- It's possible to wrap a group of cards into a grid, depending on the available height and width of the parent container.
Padding
The content section padding is available in different sizes: None, XS, S, M, L.
Type
Standard
Outlined
States
Component-specific states
States
Variations
Not draggable
When not draggable, a card is fixed in place and cannot be dragged or moved.
Roundness
Moderate
Curved
Content variations
Simple
Flexbox
Color mode
Light
Dark
Dos and don'ts
Do
Do