
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-grid-lib
Advanced tools
React-responsive-grid is a package offering a grid layout system for your react projects. It's easy to use and highly customisable via props. It works in a very similar way to other grids in frontend frameworks like Bootstrap or Semantic UI. The main diff
Full documentation and API with examples here react-responsive-grid
React-responsive-grid is a package offering a grid layout system for your react projects. It's easy to use and highly customisable via props. It works in a very similar way to other grids in frontend frameworks like Bootstrap or Semantic UI. The main difference is the high level of flexibility that react-responsive-grid uses. It allows you to set up the number of columns you want for your grid (default is set to 12). You pretty much have full control over your grid because all default styles can be overridden simply by passing your own styles into the grid via the style prop.
1. Install the package with npm or yarn
npm install --save react-grid-lib
or
yarn add react-grid-lib --save
2. Import the library in the component where you want to use it:
import {Grid, Row, Col} from 'react-grid-lib';
Example of fullWidth customised Grid
<Grid style={{backgroundColor: 'red'}} fullWidth gutters={20}></Grid>
Example of Grid with custom maxWidth set 1400px
<Grid style={{backgroundColor: 'red'}} maxWidth={1400} gutters={20}></Grid>
Example of reversed Row with left alignment and 16 columns
<Grid style={{backgroundColor: 'red'}} fullWidth gutters={20}>
<Row reverse styles={{backgroundColor: 'yellow'}} totalCols={16} align="left"></Row>
</Grid>
<Grid style={{backgroundColor: 'AliceBlue'}} fullWidth gutters={10}>
<Row reverse totalCols={16} align="left">
<Col width={6} style={{backgroundColor: 'red'}}>
<div>6 col block</div>
</Col>
<Col width={6} style={{backgroundColor: 'blue'}}>
<div> 6 col block</div>
</Col>
<Col width={3} style={{backgroundColor: 'green'}}>
<div>3 col block</div>
</Col>
</Row>
</Grid>
<Grid style={{backgroundColor: 'AliceBlue'}} fullWidth gutters={10}>
<Row reverse totalCols={16} align="left">
<Col width={6} offset={4} style={{backgroundColor: 'red'}}>
<div>6 col block</div>
</Col>
<Col width={6} style={{backgroundColor: 'blue'}}>
<div> 6 col block</div>
</Col>
<Col width={3} style={{backgroundColor: 'green'}}>
<div>3 col block</div>
</Col>
</Row>
</Grid>
<Grid style={{backgroundColor: 'AliceBlue'}} fullWidth gutters={10}>
<Row reverse align="left">
<Col mobile={10} mobileOffset={2} style={{backgroundColor: 'red'}}>
<div>block 1</div>
</Col>
<Col width={6} style={{backgroundColor: 'blue'}}>
<div>block 2</div>
</Col>
<Col width={6} style={{backgroundColor: 'green'}}>
<div>block 3</div>
</Col>
</Row>
</Grid>
FAQs
React-responsive-grid is a package offering a grid layout system for your react projects. It's easy to use and highly customisable via props. It works in a very similar way to other grids in frontend frameworks like Bootstrap or Semantic UI. The main diff
We found that react-grid-lib demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.