Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.
/ react-magic-grid Public archive

React adapter for MagicGrid

Notifications You must be signed in to change notification settings

SDFE/react-magic-grid

Repository files navigation

React Magic Grid

A react adapter for Magic Grid. Uses react hooks, so requires react at least in version 16.8.0.

There is another react adapter available that uses react's Component Class so it also supports older versions of react.

See example use cases.

Usage

npm i -S magic-grid react-magic-grid

import MagicGrid from "react-magic-grid"

const Cards = ({ cards }) => (
  <MagicGrid items={cards.length}>
    {cards.map(item => (
      <Card key={item} item={item} />
    ))}
  </MagicGrid>
)

Props

Supports all options in Magic-Grid's config.

About

React adapter for MagicGrid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published