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

Function Container

src/Container.js:13–35  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

11};
12
13function Container(props) {
14 const {
15 className,
16 cssModule,
17 fluid,
18 tag: Tag = 'div',
19 ...attributes
20 } = props;
21
22 let containerClass = 'container';
23 if (fluid === true) {
24 containerClass = 'container-fluid';
25 } else if (fluid) {
26 containerClass = `container-${fluid}`;
27 }
28
29 const classes = mapToCssModules(
30 classNames(className, containerClass),
31 cssModule,
32 );
33
34 return <Tag {...attributes} className={classes} />;
35}
36
37Container.propTypes = propTypes;
38

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…