react-photo-collage
v1.0.9
Published
[![image](https://nodei.co/npm/react-photo-collage.png?downloads=true&stars=true)](https://www.npmjs.com/package/react-photo-collage)
Downloads
1,560
Readme
React Photo Collage
Installation
npm install react-photo-collage
Props
Usage
import { ReactPhotoCollage } from "react-photo-collage";
const setting = {
width: '600px',
height: ['250px', '170px'],
layout: [1, 4],
photos: [
{ source: 'url/image-1.jpg' },
{ source: 'url/image-2.jpg' },
{ source: 'url/image-3.jpg' },
{ source: 'url/image-4.jpg' },
{ source: 'url/image-5.jpg' },
{ source: 'url/image-6.jpg' },
],
showNumOfRemainingPhotos: true
};
function App() {
return (
<ReactPhotoCollage {...setting} />
);
}
Demo
React-Photo-Collage-CodeSandbox
Photos courtesy of Unsplash.
Development
npm install
npm run demo