react-facebook-photo-grid

1.0.10 • Public • Published

React Facebook Photo Grid , Creates Grid Posts like Facebook

This component shows images in a neat square (or whatever dimensions you want) grid. Acts like facebooks image grids. Switches between several modes according to number of photos provided

You just need to pass any number of images to the component and rest will be taken care of.

#Usages

  npm install react-facebook-photo-grid
  yarn add react-facebook-photo-grid


  const data =[Image1, Image2, Image3, Image4, Image1, Image2],


// whereever you use ReactPhotoGrid
import Photogrid from "react-facebook-photo-grid";

   <Photogrid
      images={data} //required
    // width={600} //optional according to your need
    maxWidth={400} //optional according to your need
    ></Photogrid>
);

You dont need to worry about anything , the photo grid will automatically adjust according to the size of container , or if you want you can pass optional props width and maxWidth

Two Picture Grid

Three Picture Grid

Four Picture Grid

Five Picture Grid

More Than Five Pictures Grid

We also allow limited support for video, currently only one video along with many pictures
One Video On Picture

Kindly let us know how we can imporove this package

Facebook

Our Facebook Page

Linkedin

Our Linkedin Profile

Package Sidebar

Install

npm i react-facebook-photo-grid

Weekly Downloads

47

Version

1.0.10

License

ISC

Unpacked Size

48.2 kB

Total Files

5

Last publish

Collaborators

  • umairmukhtar