UNPKG

1.72 kBTypeScriptView Raw
1import React from 'react';
2import CardImg from './CardImg';
3import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
4import { Color, Variant } from './types';
5declare const CardBody: BsPrefixRefForwardingComponent<"div", unknown>;
6declare const CardTitle: BsPrefixRefForwardingComponent<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>>, unknown>;
7declare const CardSubtitle: BsPrefixRefForwardingComponent<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>>, unknown>;
8declare const CardLink: BsPrefixRefForwardingComponent<"a", unknown>;
9declare const CardText: BsPrefixRefForwardingComponent<"p", unknown>;
10declare const CardHeader: BsPrefixRefForwardingComponent<"div", unknown>;
11declare const CardFooter: BsPrefixRefForwardingComponent<"div", unknown>;
12declare const CardImgOverlay: BsPrefixRefForwardingComponent<"div", unknown>;
13export interface CardProps extends BsPrefixPropsWithChildren {
14 bg?: Variant;
15 text?: Color;
16 border?: Variant;
17 body?: boolean;
18}
19declare type Card = BsPrefixRefForwardingComponent<'div', CardProps> & {
20 Img: typeof CardImg;
21 Title: typeof CardTitle;
22 Subtitle: typeof CardSubtitle;
23 Body: typeof CardBody;
24 Link: typeof CardLink;
25 Text: typeof CardText;
26 Header: typeof CardHeader;
27 Footer: typeof CardFooter;
28 ImgOverlay: typeof CardImgOverlay;
29};
30declare const Card: Card;
31export default Card;