dynamic-grid-layout
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

dynamic-grid-layout

A dynamic grid layout, inspiration from Pinterest

NPM JavaScript Style Guide

Install

npm install --save dynamic-grid-layout

Usage

import React, { Component } from 'react'

import { GridView } from 'dynamic-grid-layout'
import 'dynamic-grid-layout/dist/index.css'

const Item = ({ item }: any) => <p>{item}</p>

const Example = () => {
  const items = ['item1', 'item2']
  return (
    <GridView
      items={items}
      renderItem={(item: any) => <Item item={item}></Item>}
    />
  )
}

License

MIT ©

Readme

Keywords

none

Package Sidebar

Install

npm i dynamic-grid-layout

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

20 kB

Total Files

12

Last publish

Collaborators

  • maiducthang279