Gallery images similar facebook for react
mui-fb-photo-grid
Demo
Install
npm install --save mui-fb-photo-grid
or
yarn add mui-fb-photo-grid
Usage
import { IMuiFbPhotoGridImage, MuiFbPhotoGrid } from 'mui-fb-photo-grid';
const IMAGES:IMuiFbPhotoGridImage[] = [
{
title: '...', // require
img: 'https://my-image', // require
imgThumbnail: 'https://my-thumbnail-image', // optional
},
{
title: '...',
img: 'https://my-image',
imgThumbnail: 'https://my-thumbnail-image',
},
{
title: '...',
img: 'https://my-image',
imgThumbnail: 'https://my-thumbnail-image',
}
//......
]
<MuiFbPhotoGrid
images={IMAGES} // require
reactModalStyle={{overlay: { zIndex: 2000 }}} // optional (https://github.com/reactjs/react-modal#styles)
/>;
License
MIT © CodingByJerez website