An open API service indexing awesome lists of open source software.

https://github.com/tometo-dev/react-hex-grids

Hexagonal Grid Layout for react
https://github.com/tometo-dev/react-hex-grids

react react-grid-layout react-hex-grids

Last synced: about 1 year ago
JSON representation

Hexagonal Grid Layout for react

Awesome Lists containing this project

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"
...

{item1}
....

```

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.

Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.

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 😃