1.0.7 • Published 2 years ago

react-masonry-view v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

React Masonry View

React Masonry View is responsive react library for showing simple masonry.

Features

  • Responsive
  • Lightweight

Installation

Install with npm

  npm install react-masonry-view

Install with yarn

  yarn add react-masonry-view

Usage/Examples

import { MasonryView } from 'react-masonry-view'
import 'react-masonry-view/dist/index.css'

function App() {
  const imgArray = [
    {
      id: 1,
      imgUrl: "https://source.unsplash.com/random"
    },
    {
      id: 2,
      imgUrl: "https://source.unsplash.com/random"
    },
    {
      id: 3,
      imgUrl: "https://source.unsplash.com/random"
    },
    {
      id: 4,
      imgUrl: "https://source.unsplash.com/random"
    }
  ]
  return <MasonryView imgDetails={imgArray} />
}

Live Demo

Live Demo

Screenshot/Demo

Desktop View

screenshot

Mobile View

screenshot

License

MIT © imkrunalkanojiya

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago