New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-grids

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-grids

grid system for react

  • 1.0.11
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-grids

Introduction

An easy to use simple grid layout system for React. Allows to specify base grids, and span for each column such as 5/12 - 7/12, or 1/5 - 4/5 grids.

Install

$ npm install --save-dev react-grids

Properties

ReactGrids.Wrap

`cutoff:int` // when to break from grids to single stack for responsive layouts

`align:string` // when the columns don't fill the fulll width, how to align them within the wrap. accepts left | center | right.

`max-width:int` // set maximum width for the layout

ReactGrids.Column

`base:int` // the base grids. accepts 1 to 12

`span:int` // how many base grids should this column span over. should be 1 <= x <= base.

Use

'use strict';
import ReactGrids from 'react-grids';

const YourComponent = (props) => (
    <ReactGrids.Wrap
        cutoff={599}
        align="center"
        className="my-grids-wrapper"
        max-width={900}
    >
        <ReactGrids.Column
            base={12}
            span={5}
        >
            Left column
        </ReactGrids.Column>
        <ReactGrids.Column
            base="12" 
            span="7"
        >
            Right column
        </ReactGrids.Column>
    </ReactGrids.Wrap>
)

export default YourComponent;

Keywords

FAQs

Package last updated on 25 Dec 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc