Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hamdysalah1/thegrid

React grid layout using styled-component and flexbox
https://github.com/hamdysalah1/thegrid

flexbox grid-layout reactjs styled-components

Last synced: about 1 month ago
JSON representation

React grid layout using styled-component and flexbox

Awesome Lists containing this project

README

        

## Installing
1. Use the command
``npm i thegridsys`` or ``yarn add thegridsys``
2. import the components
```import { Col, Row, Container } from "thegridsys";```

## Break Points
**Mobile Min width:** 320px
**Table Min width:** 768px
**Desktop Min width:** 1025px - // Laptops
**Larg Desktop Min width:** 1366px

*Subtract 1px to get Max width*

## Media Queries
`breakPoints` object
```
mobileOnly: `@media (min-width: ${xsMin}px) and (max-width: ${xsMax}px)`,
tabletOnly: `@media (min-width: ${smMin}px) and (max-width: ${smMax}px)`,

tablet: `@media all and (min-width: ${smMin}px)`,
desktop: `@media all and (min-width: ${mdMin}px)`,
largeDesktop: `@media all and (min-width: ${lgMin}px)`,

mobileMax: `@media all and (max-width: ${xsMax}px)`,
tabletMax: `@media all and (max-width: ${smMax}px)`,
```
## Col
Col component props *MUST WRAP WITH ROW COMPONENT*
```


{children}

```

## Row

```

{children}

```

## Container
width on desktop = 720px
width on tablet = 720px
width on mobiles = 100%
```

{children}

```