1.4.4 • Published 1 year ago

codeebo-react-grid v1.4.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

codeebo-react-grid

React grid used by Codeebo.

NPM Package:

https://www.npmjs.com/package/codeebo-react-grid

Getting Started

You can install the module via npm or yarn:

npm install codeebo-react-grid

Avaliable components:

Row, Col, Grid, Container, GenericList and scss spacings.

Usage:

###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()}</>],
  ]}
/>

Size/offset array index means:

  • 1st - large desktop
  • 2nd - medium desktop
  • 3th - tablet
  • 4th - mobile
1.4.4

1 year ago

1.4.3

1 year ago

1.4.2

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago