@@ -3,27 +3,18 @@ import * as React from 'react';
33import PropTypes from 'prop-types' ;
44
55import { useBootstrapPrefix } from './ThemeProvider' ;
6- import createWithBsPrefix from './createWithBsPrefix' ;
7- import divWithClassName from './divWithClassName' ;
8- import CardImg from './CardImg' ;
6+ import CardBody from './CardBody' ;
7+ import CardFooter from './CardFooter' ;
98import CardHeader from './CardHeader' ;
9+ import CardImg from './CardImg' ;
10+ import CardImgOverlay from './CardImgOverlay' ;
11+ import CardLink from './CardLink' ;
12+ import CardSubtitle from './CardSubtitle' ;
13+ import CardText from './CardText' ;
14+ import CardTitle from './CardTitle' ;
1015import { BsPrefixProps , BsPrefixRefForwardingComponent } from './helpers' ;
1116import { Color , Variant } from './types' ;
1217
13- const DivStyledAsH5 = divWithClassName ( 'h5' ) ;
14- const DivStyledAsH6 = divWithClassName ( 'h6' ) ;
15- const CardBody = createWithBsPrefix ( 'card-body' ) ;
16- const CardTitle = createWithBsPrefix ( 'card-title' , {
17- Component : DivStyledAsH5 ,
18- } ) ;
19- const CardSubtitle = createWithBsPrefix ( 'card-subtitle' , {
20- Component : DivStyledAsH6 ,
21- } ) ;
22- const CardLink = createWithBsPrefix ( 'card-link' , { Component : 'a' } ) ;
23- const CardText = createWithBsPrefix ( 'card-text' , { Component : 'p' } ) ;
24- const CardFooter = createWithBsPrefix ( 'card-footer' ) ;
25- const CardImgOverlay = createWithBsPrefix ( 'card-img-overlay' ) ;
26-
2718export interface CardProps
2819 extends BsPrefixProps ,
2920 React . HTMLAttributes < HTMLElement > {
0 commit comments