Card
Simple rectangular container.
When To Use#
A card can be used to display content related to a single subject. The content can consist of multiple elements of varying types and sizes.
import { NzCardModule } from 'ng-zorro-antd/card';
Examples
Card title
Card content
Card content
Card content
Loading...
Card title
Card content
Card content
Card content
Loading...
Card content
Card content
Card content
Loading...
Loading...
Card title
Card content
Card title
Card content
Card title
Card content
Loading...
Loading...
Cart Title
Content
Content
Content
Content
Content
Content
Content
Loading...
Card Title
Loading...
Card title
Loading...
Loading...
API#
<nz-card nzTitle="card title">card content</nz-card>
nz-card#
Property | Description | Type | Default | Global Config |
---|---|---|---|---|
[nzActions] | The action list, shows at the bottom of the Card. | Array<TemplateRef<void>> | - | |
[nzBodyStyle] | Inline style to apply to the card content | { [key: string]: string } | - | |
[nzBordered] | Toggles rendering of the border around the card | boolean | true | ✅ |
[nzCover] | Card cover | TemplateRef<void> | - | |
[nzExtra] | Content to render in the top-right corner of the card | string|TemplateRef<void> | - | |
[nzHoverable] | Lift up when hovering card | boolean | false | ✅ |
[nzLoading] | Shows a loading indicator while the contents of the card are being fetched | boolean | false | |
[nzTitle] | Card title | string|TemplateRef<void> | - | |
[nzType] | Card style type, can be set to inner or not set | 'inner' | - | |
[nzSize] | Size of card | 'default'|'small' | 'default' | ✅ |
nz-card-meta#
Property | Description | Type | Default |
---|---|---|---|
[nzAvatar] | avatar or icon | TemplateRef<void> | - |
[nzDescription] | description content | string|TemplateRef<void> | - |
[nzTitle] | title content | string|TemplateRef<void> | - |
[nz-card-grid]#
Property | Description | Type | Default | Global Config |
---|---|---|---|---|
[nzHoverable] | Lift up when hovering card | boolean | true | - |
Area for grid style card
nz-card-tab#
Area for tab card