1.0.9 • Published 3 years ago

react-photo-collage v1.0.9

Weekly downloads
506
License
MIT
Repository
github
Last release
3 years ago

React Photo Collage

image

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

image

React-Photo-Collage-CodeSandbox

Photos courtesy of Unsplash.

Development

npm install
npm run demo
1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

4 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago