UNPKG

react-photoswipe-gallery

Version:

React component wrapper around PhotoSwipe

29 lines (28 loc) 876 B
/// <reference types="photoswipe" /> import PropTypes from 'prop-types'; import { Options as PhotoswipeUiDefaultOptions } from 'photoswipe/dist/photoswipe-ui-default'; export declare const baseGalleryPropTypes: { children: PropTypes.Requireable<any>; options: PropTypes.Requireable<object>; id: PropTypes.Requireable<string | number>; }; export interface BaseGalleryProps { /** * PhotoSwipe options * * https://photoswipe.com/documentation/options.html */ options?: PhotoSwipe.Options & PhotoswipeUiDefaultOptions; /** * Gallery ID, for hash navigation */ id?: string | number; /** * Triggers after PhotoSwipe.init() call * * Use it for accessing PhotoSwipe API * * https://photoswipe.com/documentation/api.html */ onOpen?: (photoswipe: PhotoSwipe<PhotoSwipe.Options>) => void; }