@abdulghani/masonrygrid
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Breakpointcontext

React.js flexbox-based masonry grid with determned column and sequentially rendered item.

Install

get it from yarn/npm whatever

yarn add @abdulghani/masonrygrid

npm install @abdulghani/masonrygrid

Usage

use it as simple as

import MasonryGrid from "@abdulghani/masonrygrid";

const MyComponent = () => {
  return (
    <MasonryGrid col={3} className="mx-3">
      {products.map((item: any) => (
        <Product key={item.id} value={item} />
      ))}
    </MasonryGrid>
  );
};

// the className will applied to each column element

Readme

Keywords

none

Package Sidebar

Install

npm i @abdulghani/masonrygrid

Weekly Downloads

2

Version

1.0.4

License

ISC

Unpacked Size

3.91 kB

Total Files

6

Last publish

Collaborators

  • abdulghani