React grid used by Codeebo.
https://www.npmjs.com/package/codeebo-react-grid
You can install the module via npm
or yarn
:
npm install codeebo-react-grid
Row, Col, Grid, Container, GenericList and scss spacings.
###Grid
<Row gap={16}>
<Col size={[2, 3, 6, 12]} offset={[1, 1, 0, 0]}> Your content </Col>
<Col size={[3, 4, 6, 12]} offset={[1, 0, 0, 0]}> Your content </Col>
<Col size={[3, 4, 6, 12]} offset={[1, 0, 0, 0]}> Your content </Col>
</Row>
###GenricList
prop cols values structure:
[Column name
, property name
, size(1-12)
, optional function
]
<GenericList
data={[
{ name: "Adam", surname: "Nowak" },
{ name: "Piotr", surname: "Kowalsky" },
]}
cols={[
["Imię", "name", 6],
["Nazwisko", "surname", 6, (x) => <>{x.toUpperCase()}</>],
]}
/>
- 1st - large desktop
- 2nd - medium desktop
- 3th - tablet
- 4th - mobile