react-supergrid
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

react-supergrid

online demo · npm

Easily create a grid with infinitely nesting subgrid cells.

gif of grid

import React from "react"
import { SuperGrid } from "react-supergrid"
import { useMouseMatrixTransform } from "use-mouse-matrix-transform"

export const MyApp = () => {
  const { transform, ref } = useMouseMatrixTransform()

  return (
    <div ref={ref}>
      <SuperGrid width={1000} height={1000} transform={transform} />
    </div>
  )
}

Installation

npm add react-supergrid

More

Readme

Keywords

none

Package Sidebar

Install

npm i react-supergrid

Weekly Downloads

17,848

Version

1.0.10

License

ISC

Unpacked Size

44 kB

Total Files

11

Last publish

Collaborators

  • seveibar