Angular Card

Cards are built with as little markup and styles as possible but still manage to deliver a bunch of control and customization. Built with flexbox, they offer easy alignment and mix well with other CoreUI components. Cards have no top, left, and right margins by default, so use spacing utilities as needed. They have no fixed width to start, so they'll fill the full width of its parent.

Below is an example of a basic card with mixed content and a fixed width. Cards have no fixed width to start, so they'll naturally fill the full width of its parent element.

Card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Angular Card Body

The main block of a card is the <c-card-body>. Use it whenever you need a padded section within a card.

This is some text within a card body.
Angular Card Titles, text, and links

Card titles are managed by cCardTitle directive for <h*>. Identically, links are attached and collected next to each other by cCardLink directive for <a> tag. Subtitles are handled by cCardSubtitle directive.

Store cCardTitle and the cCardSubtitle items in a <c-card-body>. The card title, and subtitle are arranged properly.

Card title
Card subtitle

Some quick example text to build on the card title and make up the bulk of the card content.

Card link Another link
Angular Card Images

cCardImg="top" places a picture to the top of the card. With cCardText, text can be added to the card. Text within cCardText can additionally be styled with the regular HTML tags.

Some quick example text to build on the card title and make up the bulk of the card content.

Angular Card list groups

Create lists of content in a card with a flush list group.

  • Cras justo odio
  • Dapibus ac facilisis in
  • Vestibulum at eros
Header
  • Cras justo odio
  • Dapibus ac facilisis in
  • Vestibulum at eros
  • Cras justo odio
  • Dapibus ac facilisis in
  • Vestibulum at eros
Footer
Angular Card kitchen sink

Combine and match many content types to build the card you need, or throw everything in there. Shown below are image styles, blocks, text styles, and a list group—all wrapped in a fixed-width card.

Card title

Some quick example text to build on the card title and make up the bulk of the card content.

  • Cras justo odio
  • Dapibus ac facilisis in
  • Vestibulum at eros
Card link Another link
Card Header and footer

Add an optional header and/or footer within a card.

Featured

Card headers can be styled by adding ex. "h5".

Header
Quote

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Someone famous in Source Title
Header 2 days ago
Angular Card Sizing

Cards assume no specific width to start, so they'll be 100% wide unless otherwise stated. You can adjust this as required with custom CSS, grid classes, grid Sass mixins, or services.

Using grid markup

Using the grid, wrap cards in columns and rows as needed.

Using utilities

Use some of available sizing utilities to rapidly set a card width.

Using custom CSS

Use custom CSS in your stylesheets or as inline styles to set a width.

Card Text alignment

You can instantly change the text arrangement of any card—in its whole or specific parts—with text align classes.

Card Navigation

Add some navigation to a <c-card-header> with our <c-nav> component.

@for (tab of tabs; track tab) { } @for (panel of tabs; track panel) { } @for (tab of tabs; track tab) { } @for (panel of tabs; track panel) { }
Card Image caps

Similar to headers and footers, cards can include top and bottom "image caps"—images at the top or bottom of a card.

Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago

Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago

Card Styles

Cards include various options for customizing their backgrounds, borders, and color.

Background and color

Use color property to change the appearance of a card.

@for (item of colors; track item; let i = $index) { Header
{{ item.color }} card title

Some quick example text to build on the card title and make up the bulk of the card's content.

}

Border

Use border utilities to change just the border-color of a card. Note that you can set textColor property on the <c-card> or a subset of the card's contents as shown below.

@for (item of colors; track item; let i = $index) { Header
{{ item.color }} card title

Some quick example text to build on the card title and make up the bulk of the card's content.

}

Top border

Use border utilities to change just the border-color of a card. Note that you can set textColor property on the <c-card> or a subset of the card's contents as shown below.

@for (item of colors; track item; let i = $index) { Header
{{ item.color }} card title

Some quick example text to build on the card title and make up the bulk of the card's content.

}
Card Card groups

Use card groups to render cards as a single, attached element with equal width and height columns. Card groups start off stacked and use display: flex; to become attached with uniform dimensions starting at the sm breakpoint.

Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago

Card title

This card has supporting text below as a natural lead-in to additional content.

Last updated 3 mins ago

Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.

Last updated 3 mins ago

When using card groups with footers, their content will automatically line up.

Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago
Card title

This card has supporting text below as a natural lead-in to additional content.

Last updated 3 mins ago
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.

Last updated 3 mins ago
Card Grid cards

Use the c-row component and set xs|sm|md|lg|xl|xxl property to control how many grid columns (wrapped around your cards) you show per row. For example xs="1" laying out the cards on one column, and md="1" splitting four cards to equal width across multiple rows, from the medium breakpoint up.

Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago

Change it to md="3" and you'll see the fourth card wraps.

Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago
CoreUI for Angular Placeholder Image cap
Card {{ title ?? 'title' }}

Some quick example text to build on the card title and make up the bulk of the card's content.

Special title treatment

With supporting text below as a natural lead-in to additional content.