# lil-grid

> A tiny grid for styled-components systems

Latest version **4.1.1** (published 2020-06-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install lil-grid
pnpm add lil-grid
yarn add lil-grid
bun add lil-grid
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.1.1 |
| Published | 2020-06-15 |
| First published | 2019-08-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Patrick Krawczykowski |
| Maintainers | pkrawz |
| Keywords | grid, styled-components |

## Links

- npm: https://www.npmjs.com/package/lil-grid
- Repository: https://github.com/pkrawc/lil-grid
- Homepage: https://github.com/pkrawc/lil-grid#readme
- Issues: https://github.com/pkrawc/lil-grid/issues
- npm.io page: https://npm.io/package/lil-grid

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 4.1.1 (latest) — 2020-06-15
- 3.0.1-beta.0 (beta) — 2020-03-21
- 4.1.0 — 2020-05-25
- 4.0.2 — 2020-04-05
- 4.0.1 — 2020-04-05
- 4.0.0 — 2020-04-05
- 3.0.1 — 2020-03-21
- 3.0.0 — 2020-03-21
- 2.0.3 — 2019-09-07
- 2.0.2 — 2019-09-07
- 2.0.1 — 2019-09-06
- 2.0.0 — 2019-08-28
- 1.1.1 — 2019-08-28
- 1.1.0 — 2019-08-28
- 1.0.4 — 2019-08-28
- … 4 more at https://npm.io/package/lil-grid/versions

## README

# Lil Grid

![npm bundle size](https://img.shields.io/bundlephobia/minzip/lil-grid)
![npm](https://img.shields.io/npm/dm/lil-grid)

A _tiny_ grid for `styled-components` and `style-system`.

## Installation

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

## Usage

```js
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`

| Name    | Type   | Default | Description                                                                           |
| ------- | ------ | ------- | ------------------------------------------------------------------------------------- |
| columns | number | 12      | A shorthand for `grid-template-columns: repeat(n, 1fr)` where n is your column count. |

## Col Props

`space, layout, flexbox, grid, color, background`

| Name      | Type       | Default | Description                                                        |
| --------- | ---------- | ------- | ------------------------------------------------------------------ |
| span      | `[number]` | `null`  | The amount of column places for the element to span.               |
| offset    | `[number]` | `null`  | The amount of column places to offset the start of the element by. |
| spanRow   | `[number]` | `null`  | The amount of row places for the element to span.                  |
| offsetRow | `[number]` | `null`  | The amount of column places to offset the start of the element by. |

---
_Source: https://npm.io/package/lil-grid · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
