0.1.1 • Published 10 years ago

react-grid-components v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

React Grid Components

A lightweight set of React components used to create a Bootstrap grid

##Features

  • Three simple components: Container, Row, Column
  • No dependencies except React
  • Inline CSS

##Example

Load the components:

var Container = require('react-grid-components/container');
var Row = require('react-grid-components/row');
var Column = require('react-grid-components/column');

Usage:

<Container>
  <Row>
    <Column width={9}>
      Parent Column
      <Row>
        <Column width={6}>Child Column 1</Column>
        <Column width={6}>Child Column 2</Column>
      </Row>
    </Column>
  </Row>
  <Row>
    <Column width={3} offset={3}>Column with an offset 1</Column>
    <Column width={3} offset={3}>Column with an offset 2</Column>
  </Row>
</Container>

For more please see example folder in the git repo

##Optional CSS

To have a more consistent Bootstrap experience, you can add this global css rule (to your index.html) However this is optional as the components have this included in the inline styles

*{
  box-sizing: border-box;
}

##TODO

  • Responsive features

##License

MIT

0.1.1

10 years ago

0.1.0

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago