4.1.1 • Published 4 years ago

lil-grid v4.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Lil Grid

npm bundle size npm

A tiny grid for styled-components and style-system.

Installation

npm install react react-dom styled-components styled-system lil-grid

Usage

import { Grid, Col } from "lil-grid"

export default () => {
  return (
    <Grid>
      <Col span={[12, 6, 4]}>
        I will be 12 columns at the smallest size, then 6, then 4.
      </Col>
    </Grid>
  )
}

Grid Props

Styled Props

space, layout, flexbox, grid

NameTypeDefaultDescription
columnsnumber12A shorthand for grid-template-columns: repeat(n, 1fr) where n is your column count.

Col Props

space, layout, flexbox, grid, color, background

NameTypeDefaultDescription
span[number]nullThe amount of column places for the element to span.
offset[number]nullThe amount of column places to offset the start of the element by.
spanRow[number]nullThe amount of row places for the element to span.
offsetRow[number]nullThe amount of column places to offset the start of the element by.
4.1.1

4 years ago

4.1.0

4 years ago

4.0.2

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.0.1

4 years ago

3.0.1-beta.0

4 years ago

3.0.0

4 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.1

5 years ago

1.1.0

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