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

Function Col

src/Col.js:94–116  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

92};
93
94function Col(props) {
95 const {
96 className,
97 cssModule,
98 widths = colWidths,
99 tag: Tag = 'div',
100 ...attributes
101 } = props;
102
103 let { modifiedAttributes, colClasses } = getColumnClasses(
104 attributes,
105 cssModule,
106 widths,
107 );
108
109 if (!colClasses.length) {
110 colClasses.push('col');
111 }
112
113 const classes = mapToCssModules(classNames(className, colClasses), cssModule);
114
115 return <Tag {...modifiedAttributes} className={classes} />;
116}
117
118Col.propTypes = propTypes;
119

Callers

nothing calls this directly

Calls 2

mapToCssModulesFunction · 0.90
getColumnClassesFunction · 0.85

Tested by

no test coverage detected