0.2.0 • Published 5 years ago
react-algrid v0.2.0
react-algrid
Installing
Install using yarn
:
yarn add react-algrid
Install using npm
:
npm install --save react-algrid
Example
This will render two columns. Uses Grid layout to do that.
import React from "react";
import ReactDOM from "react-dom";
import Grid from "react-algrid"
import "react-algrid/dist/cjs/index.css";
function Test() {
return (
<Grid columns={2}>
<div>Column A</div>
<div>Column B</div>
</Grid>
)
}
ReactDOM.render(<Test/>, document.getElementById('root'));
Props
Name | Type | Default | Description |
---|---|---|---|
columns | number | 3 | How many grid columns to show. Supported values are 1 through 6 |