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

Function getColumnSizeClass

src/Col.js:40–49  ·  view source on GitHub ↗
(isXs, colWidth, colSize)

Source from the content-addressed store, hash-verified

38};
39
40const getColumnSizeClass = (isXs, colWidth, colSize) => {
41 if (colSize === true || colSize === '') {
42 return isXs ? 'col' : `col-${colWidth}`;
43 }
44 if (colSize === 'auto') {
45 return isXs ? 'col-auto' : `col-${colWidth}-auto`;
46 }
47
48 return isXs ? `col-${colSize}` : `col-${colWidth}-${colSize}`;
49};
50
51export const getColumnClasses = (attributes, cssModule, widths = colWidths) => {
52 const modifiedAttributes = attributes;

Callers 1

getColumnClassesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…