Class IgxCardComponent

Card provides a way to display organized content in appealing way.

IgxCardModule

igx-card-theme, igx-icon-theme, igx-button-theme

card, button, avatar, icon

Layouts

The Ignite UI Card serves as a container that allows custom content to be organized in an appealing way. There are five sections in a card that you can use to organize your content. These are header, media, content, actions, and footer.

<igx-card>
<igx-card-header>
<h3 igxCardHeaderTitle>{{title}}</h3>
<h5 igxCardHeaderSubtitle>{{subtitle}}</h5>
</igx-card-header>
<igx-card-actions>
<button type="button" igxButton igxRipple>Share</button>
<button type="button" igxButton igxRipple>Play Album</button>
</igx-card-actions>
</igx-card>

Constructors

Properties

elevated: boolean = false

Sets/gets whether the card is elevated. Default value is false.

<igx-card elevated></igx-card>
let cardElevation = this.card.elevated;
horizontal: boolean = false

Sets the value of the horizontal attribute of the card. Setting this to true will make the different card sections align horizontally, essentially flipping the card to the side.

<igx-card [horizontal]="true"></igx-card>
id: string = ...

Sets/gets the id of the card. If not set, id will have value "igx-card-0";

<igx-card id="my-first-card"></igx-card>
let cardId =  this.card.id;
role: string = 'group'

Sets the value of the role attribute of the card. By default the value is set to group.

<igx-card role="group"></igx-card>