4.0.0 • Published 4 years ago

react-grid-layout-component v4.0.0

Weekly downloads
67
License
MIT
Repository
github
Last release
4 years ago

React Grid Layout Component

npm

This component allow to display a simple fixed grid layout on front of your react app.

screen

Dependencies

How to use

  • Install package:
$ yarn add react-grid-layout-component

or

$ npm i react-grid-layout-component
  • Import <GridLayout /> component on the project root component:
import {GridLayout} from 'react-grid-layout-component/lib/GridLayout';

export const AppRoot = () => {
  return (
    <div>
      <GridLayout />
    </div>
  );
};
propstypedescriptiondefault value
columnsNumbernumberNumber of columns12
gutterSizenumberSize of gutter between columns (px)20
colorstringSet custom column Gridrgba(255, 0, 0, 0.14)
maxWidthnumberSet a max width on the containernull

example:

<GridLayout 
  columnsNumber={6} 
  gutterSize={10} 
 />

NOTE: If you need to display a simple Grid Line Layout without gutter, set gutterSize props to 0.

Example

  • Clone the repository
  • Install dependencies and start dev server with one single command line:
$ yarn dev

Credit

© Willy Brauner

Licence

MIT

4.0.0

4 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.2

5 years ago

2.0.0

5 years ago

1.1.0

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago