react-facebook-photo-grid
v1.0.10
Published
A npm react package to display picture and photo posts in grids like facebook does
Downloads
228
Maintainers
Readme
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
Our Facebook Page
Our Linkedin Profile