1.0.8 • Published 5 years ago

react-sc-grid v1.0.8

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

React Styled Components Grid

A simple React grid component built with Styled Components, adapted from Udemy course 'Advanced CSS and Sass: Flexbox, Grid, Animations and More!'.

View example here: https://react-sc-grid-storybook.s3-eu-west-1.amazonaws.com/storybookS3/index.html?path=/story/example-usage--grid

Installation

npm i react-sc-grid

Usage

Exports are Column and Row and the default gutter width is 8px.

import { Column, Row } from 'react-sc-grid';

const App = () => {
  <>
    <Row>
      <Column width={1} numCols={2}>
        col 1 of 2
      </Column>
      <Column width={1} numCols={2}>
        col 1 of 2
      </Column>
    </Row>
    <Row>
      <Column width={1} numCols={3}>
        col 1 of 3
      </Column>
      <Column width={2} numCols={3}>
        col 2 of 3
      </Column>
    </Row>
  </>;
};
1.0.8

5 years ago

1.0.8-0

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago