This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@w01f-o/react-grid-layout
TypeScript icon, indicating that this package has built-in type declarations

2.2.1 • Public • Published

React-Grid-Layout

npm download npm version License

This is a grid system for react, similar to bootstrap-grid allows you to use Container, Row and Col components in your React applications

Setup

# Using yarn
> yarn add @w01f-o/react-grid-layout
# Using npm
> npm install @w01f-o/react-grid-layout

Usage

import {Row, Container, Col} from '@w01f/react-grid-layout'

const App = () => {
  return (
    <>
      <Container>
        <Row>
          <Col>

          </Col>
          <Col>

          </Col>
        </Row>
      </Container>
    </>
  );
};

export default App;

In the root component.

import '@w01f-o/react-grid-layout/css'

Available props

For all components className, resetOffset, as well as all attributes related to HTMLDivElement

<Container className="example__container" resetOffset>
    <Row className="example__row" resetOffset></Row>
</Container>

For Col component - xxl, xl, lg, md, sm, xs

<Container>
    <Row>
        <Col xxl={12} xl={6} lg={3} md={6} sm={12} xs={12}>
        </Col>
        <Col xxl={12} xl={6} lg={3} md={6} sm={12} xs={12}>
        </Col>
        <Col xxl={12} xl={6} lg={3} md={6} sm={12} xs={12}>
        </Col>
        <Col xxl={12} xl={6} lg={3} md={6} sm={12} xs={12}>
        </Col>
    </Row>
</Container>

Breakpoints

xxl xl lg md sm xs
>= 1400px >= 1200px >= 992px >= 768px >= 576px < 576px

License

MIT License

Package Sidebar

Install

npm i @w01f-o/react-grid-layout

Weekly Downloads

19

Version

2.2.1

License

MIT

Unpacked Size

39.9 kB

Total Files

7

Last publish

Collaborators

  • w01f-o