1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91---
title: 'ion-card'
---
import Props from '@ionic-internal/component-api/v7/card/props.md';
import Events from '@ionic-internal/component-api/v7/card/events.md';
import Methods from '@ionic-internal/component-api/v7/card/methods.md';
import Parts from '@ionic-internal/component-api/v7/card/parts.md';
import CustomProps from '@ionic-internal/component-api/v7/card/custom-props.mdx';
import Slots from '@ionic-internal/component-api/v7/card/slots.md';
import EncapsulationPill from '@components/page/api/EncapsulationPill';
<head>
<title>ion-card: Card UI Components for Ionic Framework API</title>
<meta
name="description"
content="ion-card UI components are entry points to more detailed information. Cards can be single components or made up of some header, title, subtitle, and content."
/>
</head>
<EncapsulationPill type="shadow" />
Cards are containers that display content such as text, images, buttons, and lists.
A card can be a single component, but is often made up of a header, title, subtitle,
and content. Cards are broken up into several components to accommodate this structure:
[card header](./card-header), [card title](./card-title), [card subtitle](./card-subtitle),
and [card content](./card-content).
## Basic Usage
import Basic from '@site/static/usage/v7/card/basic/index.md';
<Basic />
## Media Cards
import Media from '@site/static/usage/v7/card/media/index.md';
<Media />
## Card Buttons
import Buttons from '@site/static/usage/v7/card/buttons/index.md';
<Buttons />
## List Card
import List from '@site/static/usage/v7/card/list/index.md';
<List />
## Theming
### Colors
import Colors from '@site/static/usage/v7/card/theming/colors/index.md';
<Colors />
### CSS Custom Properties
import CSSProps from '@site/static/usage/v7/card/theming/css-properties/index.md';
<CSSProps />
## Properties
<Props />
## Events
<Events />
## Methods
<Methods />
## CSS Shadow Parts
<Parts />
## CSS Custom Properties
<CustomProps />
## Slots
<Slots />