1.0.7 • Published 1 year ago

react-masonry-view v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago