# worko-react-grid

> Grid to scaffold React apps

Latest version **3.1.0** (published 2022-02-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install worko-react-grid
pnpm add worko-react-grid
yarn add worko-react-grid
bun add worko-react-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 | 3.1.0 |
| Published | 2022-02-04 |
| First published | 2019-11-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 16.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Worköholics |
| Maintainers | igornietogarrote, ikerztipot, gorka1 |
| Keywords | React, Grid |

## Links

- npm: https://www.npmjs.com/package/worko-react-grid
- Repository: https://gitlab.com/workoholics-resources/react-grid
- Homepage: https://gitlab.com/workoholics-resources/react-grid#readme
- Issues: https://gitlab.com/workoholics-resources/react-grid/issues
- npm.io page: https://npm.io/package/worko-react-grid

## Dependencies (1)

- [worko-mixins](https://npm.io/package/worko-mixins.md) ^2.0.2

## 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

- 3.1.0 (latest) — 2022-02-04
- 3.0.2 — 2022-02-02
- 3.0.1 — 2022-01-27
- 3.0.0 — 2022-01-26
- 2.0.2 — 2021-08-24
- 2.0.0 — 2021-08-23
- 1.0.14 — 2020-02-18
- 1.0.13 — 2020-02-18
- 1.0.12 — 2020-02-18
- 1.0.11 — 2019-11-12
- 1.0.10 — 2019-11-12
- 1.0.9 — 2019-11-11
- 1.0.8 — 2019-11-11
- 1.0.7 — 2019-11-11
- 1.0.6 — 2019-11-11
- … 1 more at https://npm.io/package/worko-react-grid/versions

## README

# Worköholics React Grid

**Author:** Worköholics

React Grid to scaffold Worköholics grid in React apps. You can also use  it in Gatsby projects.

## Install

```console
npm install --save worko-react-grid
```

## Usage

### 1. Import `grid.scss` file in your sass main file.

#### Override variables

You can override some variables to customize the grid as you want.

```scss
$cols: 12 !default;
$gutter: 15px !default;
$safe-area: 90px !default;
$safe-area-xs: 30px !default;
$breakpoint-sm: 576px !default; 
$breakpoint-md: 768px !default;
$breakpoint-lg: 992px !default;
$breakpoint-xl: 1200px !default;

@import "./path/to/node_modules/worko-grid/grid.scss"
```

### 2. Import Row and Col components in your React component to use the grid

```js
import {Row, Col} from "worko-react-grid"
```

### 3. Use it

```js
const ExampleComponent = () => {
  return (
    //...
    <Row wrap={true}>
      <Col md={5} mdOffset={1}>
        ...
      </Col>
      <Col md={5}>
        ...
      </Col>
    </Row>
    //...
  )  
} 
```

## Components

### Row

#### Parameters

- **wrap (bool):** Enable `flex-wrap` on the Row component

### Col

#### Parameters

- **xs (number):** Width set in columns (screen < `$breakpoint-sm`)
- **sm (number):** Width set in columns (`$breakpoint-sm` < screen < `$breakpoint-md`)
- **md (number):** Width set in columns (`$breakpoint-md` < screen < `$breakpoint-lg`)
- **lg (number):** Width set in columns (`$breakpoint-lg` < screen < `$breakpoint-xl`)
- **xl (number):** Width set in columns (screen > `$breakpoint-xl`)
- **xsOffset (number):** Width set in columns (screen < `$breakpoint-sm`)
- **smOffset (number):** Width set in columns (`$breakpoint-sm` < screen < `$breakpoint-md`)
- **mdOffset (number):** Width set in columns (`$breakpoint-md` < screen < `$breakpoint-lg`)
- **lgOffset (number):** Width set in columns (`$breakpoint-lg` < screen < `$breakpoint-xl`)
- **xlOffset (number):** Width set in columns (screen > `$breakpoint-xl`)
- **xsTotal (number):** Total of columns enabled in the row (screen < `$breakpoint-sm`) (default: 12)
- **smTotal (number):** Total of columns enabled in the row (`$breakpoint-sm` < screen < `$breakpoint-md`)(default: 12)
- **mdTotal (number):** Total of columns enabled in the row(`$breakpoint-md` < screen < `$breakpoint-lg`) (default: 12)
- **lgTotal (number):** Total of columns enabled in the row (`$breakpoint-lg` < screen < `$breakpoint-xl`) (default: 12)
- **xlTotal (number):** Total of columns enabled in the row (screen > `$breakpoint-xl`) (default: 12)


## Dependencies
- **worko-grid**
- **worko-mixins**

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