MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / Card

Function Card

src/Card.js:28–52  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

26};
27
28function Card(props) {
29 const {
30 className,
31 cssModule,
32 color,
33 body,
34 inverse,
35 outline,
36 tag: Tag = 'div',
37 innerRef,
38 ...attributes
39 } = props;
40 const classes = mapToCssModules(
41 classNames(
42 className,
43 'card',
44 inverse ? 'text-white' : false,
45 body ? 'card-body' : false,
46 color ? `${outline ? 'border' : 'bg'}-${color}` : false,
47 ),
48 cssModule,
49 );
50
51 return <Tag {...attributes} className={classes} ref={innerRef} />;
52}
53
54Card.propTypes = propTypes;
55

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…