react-image-pagination

    1.0.2 • Public • Published

    react-image-pagination

    NPM JavaScript Style Guide


    Description

    This project is a component that can use images like pages.


    react image pagination



    Install

    npm install --save react-image-pagination



    Demo



    Usage

    import ImagePagination from './component-dev';
    
    const ImgSrc1 = '...';
    const ImgSrc2 = '...';
    const ImgSrc3 = '...';
    
    function App() {
      return (
        <div className="App">
          <header className="App-header">
            <ImagePagination
              pages={[{src:ImgSrc1, text: 'react'}, {src:ImgSrc2, text: 'google'}, {src: ImgSrc3}]}
              dotDisplay={true}
            />
          </header>
        </div>
      );
    }

    ImagePagination Props

    props type description
    pages {src: string, text: string}[] Render Image Data
    dotDisplay boolean Whether the dots under the image are exposed



    License

    MIT © [Luffy Yeon](https://github.com/Luffy Yeon)

    Install

    npm i react-image-pagination

    DownloadsWeekly Downloads

    13

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    43.6 kB

    Total Files

    3

    Last publish

    Collaborators

    • avatar