MCPcopy Index your code
hub / github.com/reactstrap/reactstrap / CardImg

Function CardImg

src/CardImg.js:19–43  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

17};
18
19function CardImg(props) {
20 const {
21 className,
22 cssModule,
23 top,
24 bottom,
25 tag: Tag = 'img',
26 ...attributes
27 } = props;
28
29 let cardImgClassName = 'card-img';
30 if (top) {
31 cardImgClassName = 'card-img-top';
32 }
33 if (bottom) {
34 cardImgClassName = 'card-img-bottom';
35 }
36
37 const classes = mapToCssModules(
38 classNames(className, cardImgClassName),
39 cssModule,
40 );
41
42 return <Tag {...attributes} className={classes} />;
43}
44
45CardImg.propTypes = propTypes;
46

Callers

nothing calls this directly

Calls 1

mapToCssModulesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…