1.0.3 • Published 2 years ago

akeed-photo-collage v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Akeed Photo Collage

Installation

npm install akeed-photo-collage

Props

Usage

import { AkeedPhotoCollage } from "akeed-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,
  ofText: "of",
};

function App() {
  return <AkeedPhotoCollage {...setting} />;
}

Development

npm install
npm run demo