1 | import * as React from 'react';
|
2 |
|
3 | import CardImg from './CardImg';
|
4 |
|
5 | import { BsPrefixComponent } from './helpers';
|
6 |
|
7 | export class CardTitle<
|
8 | As extends React.ElementType = 'div'
|
9 | > extends BsPrefixComponent<As> {}
|
10 |
|
11 | export class CardSubtitle<
|
12 | As extends React.ElementType = 'div'
|
13 | > extends BsPrefixComponent<As> {}
|
14 |
|
15 | export class CardBody<
|
16 | As extends React.ElementType = 'div'
|
17 | > extends BsPrefixComponent<As> {}
|
18 |
|
19 | export class CardLink<
|
20 | As extends React.ElementType = 'a'
|
21 | > extends BsPrefixComponent<As> {}
|
22 |
|
23 | export class CardText<
|
24 | As extends React.ElementType = 'p'
|
25 | > extends BsPrefixComponent<As> {}
|
26 |
|
27 | export class CardHeader<
|
28 | As extends React.ElementType = 'div'
|
29 | > extends BsPrefixComponent<As> {}
|
30 |
|
31 | export class CardFooter<
|
32 | As extends React.ElementType = 'div'
|
33 | > extends BsPrefixComponent<As> {}
|
34 |
|
35 | export class CardImgOverlay<
|
36 | As extends React.ElementType = 'div'
|
37 | > extends BsPrefixComponent<As> {}
|
38 |
|
39 | export interface CardProps {
|
40 | bg?:
|
41 | | 'primary'
|
42 | | 'secondary'
|
43 | | 'success'
|
44 | | 'danger'
|
45 | | 'warning'
|
46 | | 'info'
|
47 | | 'dark'
|
48 | | 'light';
|
49 | text?:
|
50 | | 'primary'
|
51 | | 'secondary'
|
52 | | 'success'
|
53 | | 'danger'
|
54 | | 'warning'
|
55 | | 'info'
|
56 | | 'dark'
|
57 | | 'light'
|
58 | | 'white'
|
59 | | 'muted';
|
60 | border?:
|
61 | | 'primary'
|
62 | | 'secondary'
|
63 | | 'success'
|
64 | | 'danger'
|
65 | | 'warning'
|
66 | | 'info'
|
67 | | 'dark'
|
68 | | 'light';
|
69 | body?: boolean;
|
70 | }
|
71 |
|
72 | declare class Card<
|
73 | As extends React.ElementType = 'div'
|
74 | > extends BsPrefixComponent<As, CardProps> {
|
75 | static Img: typeof CardImg;
|
76 | static Title: typeof CardTitle;
|
77 | static Subtitle: typeof CardSubtitle;
|
78 | static Body: typeof CardBody;
|
79 | static Link: typeof CardLink;
|
80 | static Text: typeof CardText;
|
81 | static Header: typeof CardHeader;
|
82 | static Footer: typeof CardFooter;
|
83 | static ImgOverlay: typeof CardImgOverlay;
|
84 | }
|
85 |
|
86 | export default Card;
|