0.4.0 • Published 6 years ago

react-image-masonry v0.4.0

Weekly downloads
648
License
-
Repository
github
Last release
6 years ago

NPM

React Image Masonry

Generate image masonry easily with this react component! Detailed docs and demo here: https://christinakayastha.github.io/react-image-masonry/

Getting Started

Have you ever needed to quickly spin up a simple image gallery with masonry tiling in react? You've come to the right place :D

React Image Masonry is a simple react component that lets you add a gallery of images to your app. It's super light-weight and requires no external dependencies! Have fun using it and feel free to contribute on Github (:

Installation

You can download the package from npm with:

npm install react-image-masonry --save

Usage Simple

To use simply import the component, and specify an array of imageUrls and number of columns

<ImageMasonry
    imageUrls={[
        'https://media.giphy.com/media/8Ry7iAVwKBQpG/giphy.gif',
        'https://media.giphy.com/media/KI9oNS4JBemyI/giphy.gif',
        ...]}
    numCols={3}
/>

Usage Advanced

You can also pass in an array of components, containerWidth, containerHeight, scroll and animate like this:

<ImageMasonry
    numCols={3}
    containerWidth={"600px"}
    animate={true}
    scrollable={true}
    containerHeight={"400px"}
    className="my-class"
    forceOrder={true}
>
    {images}
<ImageMasonry>

Demo

https://christinakayastha.github.io/react-image-masonry/

Contributing

Contributions are welcome on github!! https://github.com/christinakayastha/react-image-masonry

0.4.0

6 years ago

0.3.7

7 years ago

0.3.6

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.13

7 years ago

0.2.12

7 years ago

0.2.11

7 years ago

0.2.10-beta

7 years ago

0.2.9-beta

7 years ago

0.2.8-beta

7 years ago

0.2.7-beta

7 years ago

0.2.6-beta

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.10

7 years ago

0.1.9-beta

7 years ago

0.1.8-beta

7 years ago

0.1.7-beta

7 years ago

0.1.6-beta

7 years ago

0.1.5-beta

7 years ago

0.1.4-beta

7 years ago

0.1.3-beta

7 years ago

0.1.2-beta

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago