react-bs-grid

1.0.1 • Public • Published

React Bootstrap Grid

npm install react-bs-grid

React components for declaratively constructing Bootstrap layout grids (Container, Row, Col).

Example Usage

import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Container, Row, Col } from 'react-bs-grid';
 
class MyComponent extends Component {
 
  render() {
    return (
      <Container fluid={true}>
        <Row>
          <Col xs={12} sm={6} md={4} lg={2} offsetSm={3} offsetMd={2} offsetLg={5}>
            My content is resized and centered...
          </Col>
        </Row>
      </Container>
    );
  }
}

License

MIT

Package Sidebar

Install

npm i react-bs-grid

Weekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • finnfiddle