mui-fb-photo-grid

Demo

demo mui-fb-photo-grid

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

GitHub

View Github