References
Material DocumentationDashboard Live
ExampleExample
...
...
Usage
Structure
Code Block |
---|
<mat-card> <mat-card-header> <mat-card-title>Panel Title</mat-card-title> </mat-card-header> <mat-card-actions> Actions Content </mat-card-actions/> <mat-card-content> <div class="content-padding-med"> Panel Content </div> </mat-card-content> <mat-card-footer> Panel Footer </mat-card-footer> </mat-card> |
...
Use
<mat-card-header>
for containing panel header contentUse
<mat-card-title>
within the<mat-card-header>
for panel titles
Actions
Use
<mat-card-actions>
after the header. This space is most frequently allocated for buttons, of which will be styled automatically once placed in this container.
Content
Use
<mat-card-content>
the content within the card.Utilise ‘content-padding’ classes to achieve the 20px spacing as outlined here.
...