react-pic-preview

1.0.3 • Public • Published

react-pic-preview

  • Base on react. for photo preview

Installation

npm install --save react-pic-preview

Usage

Example with defaults Creating an example component

import React from 'react'
import PicPreview from 'react-pic-preview'
export default class Home extends React.Component {
    render() {
        return (
            <div>
                <PicPreview photos={photos} customClass="feed-preview"/>
            </div>
        )
    }
}

Properties

photos

Type Array your photos list

customClass

Type String your custom className

License

ISC

Readme

Keywords

Package Sidebar

Install

npm i react-pic-preview

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

4.6 kB

Total Files

4

Last publish

Collaborators

  • xfz1987