1.0.4 • Published 5 years ago

reactism-grid v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

reactism-grid

Grid system for react.js project reference by bootstrap 4.

Grid Structure

This is basic example to using the grid.

<Container>
  <Row>
    <Col>Column 1</Col>
    <Col>Column 2</Col>
    <Col>Column 3</Col>
  </Row>
</Container>

API

Container

Container will create a boxed layout with max width 1346px by default, you can change with property size.

import { Container } from 'reactism-grid'

NameTypeDefaultDescription
sizenumber, string1346Max width for the container
gutternumber, string32Spacing between column
paddingnumber, stringnullExtra control to give padding for the container

Row

Row is wrapper for col, this also means row of course like the name of the component.

import { Row } from 'reactism-grid'

NameTypeDefaultDescription
noGutterboolfalseRemove spacing between column

Col

Col is the most used in grid, its mean column for layout. We using 12 max column (will be dynamic in the future). So when you want to make 2 column in your site, the code will be like:

import { Row, Col } from 'reactism-grid'

...

// Auto width
<Row>
  <Col>Column 1</Col>
  <Col>Column 2</Col>
</Row>

// Defined, you can make it different
<Row>
  <Col md="7">Column 1</Col> // Wider than column 2
  <Col md="5">Column 2</Col>
</Row>
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago