# @watheia/base-ui.layout.grid-component

> Basic grid element for 1-12 columns. Accepts all props of native html div element.

Latest version **1.3.3** (published 2021-12-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @watheia/base-ui.layout.grid-component
pnpm add @watheia/base-ui.layout.grid-component
yarn add @watheia/base-ui.layout.grid-component
bun add @watheia/base-ui.layout.grid-component
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.3 |
| Published | 2021-12-07 |
| First published | 2021-05-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 29.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Aaron R Miller |
| Maintainers | waweb |
| Keywords | microcomponent, microfrontend, watheia, mfe, blog, bit, spectrum, react, design-system |

## Links

- npm: https://www.npmjs.com/package/@watheia/base-ui.layout.grid-component
- Repository: https://bit.dev/watheia/{scope}
- Homepage: https://watheia.app
- npm.io page: https://npm.io/package/@watheia/base-ui.layout.grid-component

## Dependencies (3)

- [clsx](https://npm.io/package/clsx.md) 1.1.1
- [core-js](https://npm.io/package/core-js.md) ^3.0.0
- [@watheia/base-ui.layout.breakpoints](https://npm.io/package/@watheia/base-ui.layout.breakpoints.md) 1.2.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.3.3 (latest) — 2021-12-07
- 1.3.2 — 2021-12-07
- 1.3.1 — 2021-12-07
- 1.3.0 — 2021-12-02
- 1.2.0 — 2021-12-01
- 1.1.4 — 2021-11-30
- 1.1.3 — 2021-11-30
- 1.1.1 — 2021-11-30
- 1.1.0 — 2021-11-29
- 1.0.0 — 2021-06-21
- 0.1.7 — 2021-05-29
- 0.1.6 — 2021-05-28
- 0.1.5 — 2021-05-28
- 0.1.4 — 2021-05-27
- 0.1.3 — 2021-05-26
- … 9 more at https://npm.io/package/@watheia/base-ui.layout.grid-component/versions

## README

## Grid Component

Basic grid element for 1-12 columns.
Accepts all props of native html div element.

```tsx
import { grid } from "@bit/bit.base-ui.layout.grid-component"

//...
;<Grid col={2}>
  <div>column 1</div>
  <div>column 2</div>
</Grid>
```

It has built in responsive support, using it's `colX` props:

```tsx
//single column by default, 2 columns for large screens:
<Grid col={1} colL={2}>
  <div>column 1</div>
  <div>column 2</div>
</Grid>
```

### breakpoints:

- col `(all)`
- colXs `360px`
- colSm `480px`
- colMd `768px`
- colL `920px`
- colLg `1080px`
- colXl `1440px`

---
_Source: https://npm.io/package/@watheia/base-ui.layout.grid-component · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
