Skip to main content

Components

Card

Card highlight information or tasks that are related. The component comes in two variants and can contain text, images, text fields, buttons, and links.

Use Card when

  • content should be grouped
  • functionality should be separated from the rest of the content

Avoid Card when

  • long text blocks or detailed explanations need to be displayed
  • important messages should be presented as alerts (use Alert instead)

Examples

Colours

Card is available in all theme colours, and in the default and tinted variants.

With sections

You can divide the card into sections. These get dividers between them and may include images or video that extend to the edge.

Card can be used as a navigation card to take users to another page. Developers must ensure it is used correctly. This is documented in the code examples.

Card as a button

In this example, Card renders as a button. This is useful when the card contains little text and should open a dialogue or perform another action on the same page.

When the card is a button, the content inside loses all semantics, so use this carefully.

Horizontal

You can change the display mode of the card so that it appears horizontally instead of vertically.

Guidelines

Card is a flexible component used to structure and present content in a clear and visually distinct way. The card can contain different

Edit this page on github.com (opens in a new tab)