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

Function Placeholder

src/Placeholder.js:24–55  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

22};
23
24function Placeholder(props) {
25 let {
26 className,
27 cssModule,
28 color,
29 innerRef,
30 tag: Tag = 'span',
31 animation,
32 size,
33 widths,
34 ...attributes
35 } = props;
36
37 let { modifiedAttributes, colClasses } = getColumnClasses(
38 attributes,
39 cssModule,
40 widths,
41 );
42
43 const classes = mapToCssModules(
44 classNames(
45 className,
46 colClasses,
47 'placeholder' + (animation ? '-' + animation : ''),
48 size ? 'placeholder-' + size : false,
49 color ? 'bg-' + color : false,
50 ),
51 cssModule,
52 );
53
54 return <Tag {...modifiedAttributes} className={classes} ref={innerRef} />;
55}
56
57Placeholder.propTypes = propTypes;
58

Callers

nothing calls this directly

Calls 2

getColumnClassesFunction · 0.90
mapToCssModulesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…