Card

Cards can be used to group related subjects in a container.

Basic cards can display any content with no header or footer.

This is just a basic card. no header, and no footer. Just your content.

Headers can be used to display titles and more.

Card Title

Card Description
Edit card Delete card
This card has a header. You can put all sorts of things in it!

Footers can be used to display actions, summaries, or other relevant content.

This card has a footer. You can put all sorts of things in it!
Delete Edit
import '@ods/components/web.card';

Note: You only need to import a web component once in your code, as it registers itself globally when defined, allowing you to use it anywhere within your application without needing to re-import it each time you want to use the component.

Slots

NameDescription
(default)The card's main content.
headerAn optional header for the card.
footerAn optional footer for the card.

Parts

NameDescription
baseThe component's base wrapper.
headerThe container that wraps the card's header.
contentThe container that wraps the card's main content.
footerThe container that wraps the card's footer.

Usage

This section includes guidelines for designers and developers about the usage of this component in different contexts.

Do

  • Use cards to group and organize content
  • Use cards to visually separate different types of content within an application page
  • Use cards to host forms
  • Use cards to host Charts, Graphs
  • Cards can be used in list and grid layouts

Dont

  • Use cards as
  • Use more than one primary action button within a card
  • Nest cards within cards
  • Use Cards as Alerts, Dialogs or Menus

Search