Skip to content

tscircuit/supergrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A nicely labelled canvas grid that adapts to a transform automatically

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published