@evo/swipe-gallery

1.4.6 • Public • Published

Swipe-gallery

Мобильная галерея

Документацию хорошо бы написать, да

Usage

Пример:

import SwipeGallery from '@evo/swipe-gallery';

const Example = (props) => (
    ...
    <SwipeGallery
        name={name}
        images={imagesUrl}
        imageThumbs={imagesPreviewUrl}
        mainImage={image}
        theme='dark'
        customStyles={{
            bgColor: 'olive',
            detailsColor: 'tomato',
            icons: {
                back: `<svg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'>
                           <path d='M64 28H15.25L37.625 5.625 32 0 0 32l32 32 5.625-5.625L15.25 36H64z' />
                       </svg>`,
            }
        }}
        closeType='back'
        enableFullScreen
        showFullscreenControls
    />
);

Readme

Keywords

none

Package Sidebar

Install

npm i @evo/swipe-gallery

Weekly Downloads

21

Version

1.4.6

License

ISC

Unpacked Size

135 kB

Total Files

19

Last publish

Collaborators

  • stoyanovk
  • lequan
  • zemlanin
  • alexander
  • seedofjoy
  • 041616
  • docccdev
  • orhideous
  • tailhook
  • hunson.abadeer
  • mark_tven
  • amostovenko
  • sadkovoy
  • himiranov
  • evo-kazymyrov