0.1.1 • Published 8 years ago

react-sigrid v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

React (Si)mple (grid)

A lightweight, responsive simple grid component for React.

Installation

npm install react-sigrid

Usage

A part of Sigrid is to build using <Col /> which are inside of <Row />

import {Row, Col} from 'react-sigrid'

<Row>
    <Col small={12} medium={9} large={7}></Col>
    <Col small={12} medium={3} large={5}></Col>
</Row>

You can offset a column as you wish.

import {Row, Col} from 'react-sigrid'

<Row>
    <Col medium={3} mediumOffset={9} large={5} largeOffset={7}></Col>
</Row>

Screen Sizes

         | Mobile Devices (<= 600px) | Tablet Devices (<= 992px) | Desktop Devices (> 992px)

------------ | --------------------------|---------------------------|-------------------------- Prefix | small | medium | large Number of Columns | 12 | 12 | 12

Props

NameTypeDescription
childrennodeCan be used to render elements inside the Column.
classNamestringThe css class name of the column.

Columns

NameType
smallnumber
mediumnumber
largenumber

Offset

NameType
smallOffsetnumber
mediumOffsetnumber
largeOffsetnumber

License

MIT

0.1.1

8 years ago

0.1.0

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago