@@ -29,6 +29,9 @@ import {
29
29
CRow ,
30
30
} from ' ./../../../src/index.ts'
31
31
32
+ import ReactImg from ' ./../../../src/docs/assets/images/react.jpg'
33
+ import React400Img from ' ./../../../src/docs/assets/images/react400.jpg'
34
+
32
35
## About
33
36
34
37
A react card component is a content container. It incorporates options for images, headers, and footers, a wide variety of content, contextual background colors, and excellent display options.
@@ -41,7 +44,7 @@ Below is an example of a basic card with mixed content and a fixed width. Cards
41
44
42
45
<Example >
43
46
<CCard style = { { width: ' 18rem' }} >
44
- <CCardImage orientation = " top" src = " /images/react.jpg " />
47
+ <CCardImage orientation = " top" src = { ReactImg } />
45
48
<CCardBody >
46
49
<CCardTitle >Card title</CCardTitle >
47
50
<CCardText >
@@ -127,7 +130,7 @@ Subtitles are managed by `<CCardSubtitle>` component. If the `<CCardTitle>` also
127
130
128
131
< Example>
129
132
< CCard style= {{ width: ' 18rem' }}>
130
- < CCardImage orientation= " top" src= " /images/react.jpg " / >
133
+ < CCardImage orientation= " top" src= {ReactImg} / >
131
134
< CCardBody>
132
135
< CCardText>
133
136
Some quick example text to build on the card title and make up the bulk of the card' s
@@ -222,7 +225,7 @@ Combine and match many content types to build the card you need, or throw everyt
222
225
223
226
<Example >
224
227
<CCard style = { { width: ' 18rem' }} >
225
- <CCardImage orientation = " top" src = " /images/react.jpg " />
228
+ <CCardImage orientation = " top" src = { ReactImg } />
226
229
<CCardBody >
227
230
<CCardTitle >Card title</CCardTitle >
228
231
<CCardText >
@@ -663,7 +666,7 @@ Similar to headers and footers, cards can include top and bottom "image caps"—
663
666
664
667
< Example>
665
668
< CCard className= " mb-3" >
666
- < CCardImage orientation= " top" src= " /images/react.jpg " / >
669
+ < CCardImage orientation= " top" src= {ReactImg} / >
667
670
< CCardBody>
668
671
< CCardTitle> Card title< / CCardTitle>
669
672
< CCardText>
@@ -686,7 +689,7 @@ Similar to headers and footers, cards can include top and bottom "image caps"—
686
689
< small className= " text-muted" > Last updated 3 mins ago< / small>
687
690
< / CCardText>
688
691
< / CCardBody>
689
- < CCardImage orientation= " bottom" src= " /images/react.jpg " / >
692
+ < CCardImage orientation= " bottom" src= {ReactImg} / >
690
693
< / CCard>
691
694
< / Example>
692
695
@@ -715,7 +718,7 @@ Adapt an image into a background and overlay your text. Depending on the image,
715
718
716
719
< Example>
717
720
< CCard className= " mb-3 bg-dark text-white" >
718
- < CCardImage src= " /images/react.jpg " / >
721
+ < CCardImage src= {ReactImg} / >
719
722
< CCardImageOverlay>
720
723
< CCardTitle> Card title< / CCardTitle>
721
724
< CCardText>
@@ -749,7 +752,7 @@ Using a combination of grid and utility classes, cards can be made horizontal in
749
752
< CCard className= " mb-3" style= {{ maxWidth: ' 540px' }}>
750
753
< CRow className= " g-0" >
751
754
< CCol md= {4 }>
752
- < CCardImage src= " /images/react400.jpg " / >
755
+ < CCardImage src= {React400Img} / >
753
756
< / CCol>
754
757
< CCol md= {8 }>
755
758
< CCardBody>
@@ -1012,7 +1015,7 @@ Use card groups to render cards as a single, attached element with equal width a
1012
1015
< Example>
1013
1016
< CCardGroup>
1014
1017
< CCard>
1015
- < CCardImage orientation= " top" src= " /images/react.jpg " / >
1018
+ < CCardImage orientation= " top" src= {ReactImg} / >
1016
1019
< CCardBody>
1017
1020
< CCardTitle> Card title< / CCardTitle>
1018
1021
< CCardText>
@@ -1025,7 +1028,7 @@ Use card groups to render cards as a single, attached element with equal width a
1025
1028
< / CCardBody>
1026
1029
< / CCard>
1027
1030
< CCard>
1028
- < CCardImage orientation= " top" src= " /images/react.jpg " / >
1031
+ < CCardImage orientation= " top" src= {ReactImg} / >
1029
1032
< CCardBody>
1030
1033
< CCardTitle> Card title< / CCardTitle>
1031
1034
< CCardText>
@@ -1037,7 +1040,7 @@ Use card groups to render cards as a single, attached element with equal width a
1037
1040
< / CCardBody>
1038
1041
< / CCard>
1039
1042
< CCard>
1040
- < CCardImage orientation= " top" src= " /images/react.jpg " / >
1043
+ < CCardImage orientation= " top" src= {ReactImg} / >
1041
1044
< CCardBody>
1042
1045
< CCardTitle> Card title< / CCardTitle>
1043
1046
< CCardText>
@@ -1101,7 +1104,7 @@ When using card groups with footers, their content will automatically line up.
1101
1104
< Example>
1102
1105
< CCardGroup>
1103
1106
< CCard>
1104
- < CCardImage orientation= " top" src= " /images/react.jpg " / >
1107
+ < CCardImage orientation= " top" src= {ReactImg} / >
1105
1108
< CCardBody>
1106
1109
< CCardTitle> Card title< / CCardTitle>
1107
1110
< CCardText>
@@ -1114,7 +1117,7 @@ When using card groups with footers, their content will automatically line up.
1114
1117
< / CCardFooter>
1115
1118
< / CCard>
1116
1119
< CCard>
1117
- < CCardImage orientation= " top" src= " /images/react.jpg " / >
1120
+ < CCardImage orientation= " top" src= {ReactImg} / >
1118
1121
< CCardBody>
1119
1122
< CCardTitle> Card title< / CCardTitle>
1120
1123
< CCardText>
@@ -1126,7 +1129,7 @@ When using card groups with footers, their content will automatically line up.
1126
1129
< / CCardFooter>
1127
1130
< / CCard>
1128
1131
< CCard>
1129
- < CCardImage orientation= " top" src= " /images/react.jpg " / >
1132
+ < CCardImage orientation= " top" src= {ReactImg} / >
1130
1133
< CCardBody>
1131
1134
< CCardTitle> Card title< / CCardTitle>
1132
1135
< CCardText>
@@ -1193,7 +1196,7 @@ Use the `CRow` component and set `xs|sm|md|lg|xl|xxl}={{ cols: * }}` property to
1193
1196
<CRow xs={{ cols: 1, gutter: 4 }} md={{ cols: 2 }}>
1194
1197
<CCol xs>
1195
1198
<CCard>
1196
- <CCardImage orientation="top" src="/images/react.jpg" />
1199
+ <CCardImage orientation="top" src={ReactImg} />
1197
1200
<CCardBody>
1198
1201
<CCardTitle>Card title</CCardTitle>
1199
1202
<CCardText>
@@ -1208,7 +1211,7 @@ Use the `CRow` component and set `xs|sm|md|lg|xl|xxl}={{ cols: * }}` property to
1208
1211
</CCol>
1209
1212
<CCol xs>
1210
1213
<CCard>
1211
- <CCardImage orientation="top" src="/images/react.jpg" />
1214
+ <CCardImage orientation="top" src={ReactImg} />
1212
1215
<CCardBody>
1213
1216
<CCardTitle>Card title</CCardTitle>
1214
1217
<CCardText>
@@ -1223,7 +1226,7 @@ Use the `CRow` component and set `xs|sm|md|lg|xl|xxl}={{ cols: * }}` property to
1223
1226
</CCol>
1224
1227
<CCol xs>
1225
1228
<CCard>
1226
- <CCardImage orientation="top" src="/images/react.jpg" />
1229
+ <CCardImage orientation="top" src={ReactImg} />
1227
1230
<CCardBody>
1228
1231
<CCardTitle>Card title</CCardTitle>
1229
1232
<CCardText>
@@ -1238,7 +1241,7 @@ Use the `CRow` component and set `xs|sm|md|lg|xl|xxl}={{ cols: * }}` property to
1238
1241
</CCol>
1239
1242
<CCol xs>
1240
1243
<CCard>
1241
- <CCardImage orientation="top" src="/images/react.jpg" />
1244
+ <CCardImage orientation="top" src={ReactImg} />
1242
1245
<CCardBody>
1243
1246
<CCardTitle>Card title</CCardTitle>
1244
1247
<CCardText>
@@ -1325,7 +1328,7 @@ Change it to `md={{ cols: 3}}` and you'll see the fourth card wrap.
1325
1328
< CRow xs= {{ cols: 1 , gutter: 4 }} md= {{ cols: 3 }}>
1326
1329
< CCol xs>
1327
1330
< CCard>
1328
- < CCardImage orientation= " top" src= " /images/react.jpg " / >
1331
+ < CCardImage orientation= " top" src= {ReactImg} / >
1329
1332
< CCardBody>
1330
1333
< CCardTitle> Card title< / CCardTitle>
1331
1334
< CCardText>
@@ -1340,7 +1343,7 @@ Change it to `md={{ cols: 3}}` and you'll see the fourth card wrap.
1340
1343
< / CCol>
1341
1344
< CCol xs>
1342
1345
< CCard>
1343
- < CCardImage orientation= " top" src= " /images/react.jpg " / >
1346
+ < CCardImage orientation= " top" src= {ReactImg} / >
1344
1347
< CCardBody>
1345
1348
< CCardTitle> Card title< / CCardTitle>
1346
1349
< CCardText>
@@ -1355,7 +1358,7 @@ Change it to `md={{ cols: 3}}` and you'll see the fourth card wrap.
1355
1358
< / CCol>
1356
1359
< CCol xs>
1357
1360
< CCard>
1358
- < CCardImage orientation= " top" src= " /images/react.jpg " / >
1361
+ < CCardImage orientation= " top" src= {ReactImg} / >
1359
1362
< CCardBody>
1360
1363
< CCardTitle> Card title< / CCardTitle>
1361
1364
< CCardText>
@@ -1370,7 +1373,7 @@ Change it to `md={{ cols: 3}}` and you'll see the fourth card wrap.
1370
1373
< / CCol>
1371
1374
< CCol xs>
1372
1375
< CCard>
1373
- < CCardImage orientation= " top" src= " /images/react.jpg " / >
1376
+ < CCardImage orientation= " top" src= {ReactImg} / >
1374
1377
< CCardBody>
1375
1378
< CCardTitle> Card title< / CCardTitle>
1376
1379
< CCardText>
@@ -1457,7 +1460,7 @@ When you need equal height, add `.h-100` to the cards. If you want equal heights
1457
1460
< CRow xs= {{ cols: 1 }} md= {{ cols: 3 }} className= " g-4" >
1458
1461
< CCol xs>
1459
1462
< CCard className= " h-100" >
1460
- < CCardImage orientation= " top" src= " /images/react.jpg " / >
1463
+ < CCardImage orientation= " top" src= {ReactImg} / >
1461
1464
< CCardBody>
1462
1465
< CCardTitle> Card title< / CCardTitle>
1463
1466
< CCardText>
@@ -1469,7 +1472,7 @@ When you need equal height, add `.h-100` to the cards. If you want equal heights
1469
1472
< / CCol>
1470
1473
< CCol xs>
1471
1474
< CCard className= " h-100" >
1472
- < CCardImage orientation= " top" src= " /images/react.jpg " / >
1475
+ < CCardImage orientation= " top" src= {ReactImg} / >
1473
1476
< CCardBody>
1474
1477
< CCardTitle> Card title< / CCardTitle>
1475
1478
< CCardText>
@@ -1480,7 +1483,7 @@ When you need equal height, add `.h-100` to the cards. If you want equal heights
1480
1483
< / CCol>
1481
1484
< CCol xs>
1482
1485
< CCard className= " h-100" >
1483
- < CCardImage orientation= " top" src= " /images/react.jpg " / >
1486
+ < CCardImage orientation= " top" src= {ReactImg} / >
1484
1487
< CCardBody>
1485
1488
< CCardTitle> Card title< / CCardTitle>
1486
1489
< CCardText>
@@ -1493,7 +1496,7 @@ When you need equal height, add `.h-100` to the cards. If you want equal heights
1493
1496
< / CCol>
1494
1497
< CCol xs>
1495
1498
< CCard className= " h-100" >
1496
- < CCardImage orientation= " top" src= " /images/react.jpg " / >
1499
+ < CCardImage orientation= " top" src= {ReactImg} / >
1497
1500
< CCardBody>
1498
1501
< CCardTitle> Card title< / CCardTitle>
1499
1502
< CCardText>
@@ -1565,7 +1568,7 @@ Just like with card groups, card footers will automatically line up.
1565
1568
< CRow xs= {{ cols: 1 }} md= {{ cols: 3 }} className= " g-4" >
1566
1569
< CCol xs>
1567
1570
< CCard className= " h-100" >
1568
- < CCardImage orientation= " top" src= " /images/react.jpg " / >
1571
+ < CCardImage orientation= " top" src= {ReactImg} / >
1569
1572
< CCardBody>
1570
1573
< CCardTitle> Card title< / CCardTitle>
1571
1574
< CCardText>
@@ -1580,7 +1583,7 @@ Just like with card groups, card footers will automatically line up.
1580
1583
< / CCol>
1581
1584
< CCol xs>
1582
1585
< CCard className= " h-100" >
1583
- < CCardImage orientation= " top" src= " /images/react.jpg " / >
1586
+ < CCardImage orientation= " top" src= {ReactImg} / >
1584
1587
< CCardBody>
1585
1588
< CCardTitle> Card title< / CCardTitle>
1586
1589
< CCardText>
@@ -1594,7 +1597,7 @@ Just like with card groups, card footers will automatically line up.
1594
1597
< / CCol>
1595
1598
< CCol xs>
1596
1599
< CCard className= " h-100" >
1597
- < CCardImage orientation= " top" src= " /images/react.jpg " / >
1600
+ < CCardImage orientation= " top" src= {ReactImg} / >
1598
1601
< CCardBody>
1599
1602
< CCardTitle> Card title< / CCardTitle>
1600
1603
< CCardText>
0 commit comments