# react-hex-grids

> ![Hexagonal Grid Layout Demo](src/assets/hex-grid-layout-demo.png?raw=true "Hexagonal Grid Layout Demo")

Latest version **0.2.0** (published 2020-08-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-hex-grids
pnpm add react-hex-grids
yarn add react-hex-grids
bun add react-hex-grids
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2020-08-19 |
| First published | 2020-06-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 13.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Sudhanshu Ranjan |
| Maintainers | tsuki42 |
| Keywords | react, react-hex-grids, react-grid-layout |

## Links

- npm: https://www.npmjs.com/package/react-hex-grids
- Repository: https://github.com/tsuki42/react-hex-grids
- Homepage: https://github.com/tsuki42/react-hex-grids#readme
- Issues: https://github.com/tsuki42/react-hex-grids/issues
- npm.io page: https://npm.io/package/react-hex-grids

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^16.13.1
- [react-dom](https://npm.io/package/react-dom.md) ^16.13.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

- 0.2.0 (latest) — 2020-08-19
- 0.1.0 — 2020-06-19

## README

# Hexagonal Grid Layout for React

![Hexagonal Grid Layout Demo](src/assets/hex-grid-layout-demo.png?raw=true "Hexagonal Grid Layout Demo")

---

#### Motivation:

The work of Jesse Breneman [here](https://ninjarockstar.dev/css-hex-grids/).

While reading the article, I thought, "Why not build some react components for this?"

#### Usage:

```
import HexGrids, { HexGridItem, HexGridList } from "react-hex-grids"
...
<HexGridList>
  <HexGridItem>{item1}<HexGridItem>
  ....
</HexGridList>
```

See [examples](/example/src/App.js)

---

Also available on [bit.dev](https://bit.dev/tsuki/react-hex-grids/hex-grids)

```
bit import tsuki.react-hex-grids/hex-grids
```

Learn more [here](https://docs.bit.dev/docs/workspace#initializing-workspace).

#### Available scripts

In the project directory, you can run:

##### `yarn start`

Runs the app in the development mode.<br />
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br />
You will also see any lint errors in the console.

##### `yarn prettier:format`

Run prettier to format the code.

##### `yarn rollup:build`

Build using rollup

#### Contributing

PRs are always welcome 😃

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