react-simple-gallery
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

React Simple Gallery

This simple carousel-style gallery is designed for showcasing your cherished images.

Demo Screenshot

Install

npm install react-simple-gallery

How to use

In your react file,

import React from "react"
import { ImageSlider } from "react-simple-gallery"
import "react-simple-gallery/dist/index.css"
 
function demoComponent = (props) => {
  const data =[
    { title: "Image Title", src="url/to/your/Image" },
    { title: "Image Title", src="url/to/your/Image" },
  ]
  return (
    <div>
      <ImageSlider data={data} />
    </div>
  )
}
 
 

Development

npm install

Package Sidebar

Install

npm i react-simple-gallery

Weekly Downloads

2

Version

1.2.1

License

MIT

Unpacked Size

6.69 kB

Total Files

8

Last publish

Collaborators

  • daweifeng