react-mason

React masonry component

Stats

StarsIssuesVersionUpdatedCreatedSize
react-mason
1331.1.24 years ago4 years agoMinified + gzip package size for react-mason in KB

Readme

react-mason

Masonry usage

react-mason is a masonry-grid component.

Installation

npm install react-mason

Usage

Pass children to the Masonry component

import React, { Component } from 'react';
import Masonry from 'react-mason';
import Photo from './Photo';

class PhotoAlbum extends Component {
  render() {
    return (
      <Masonry>
        {
          this.props.photos.map(photo => <Photo {...photo} />)
        }
      </Masonry>
    )
  }
}

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.