react-photoswipe-gallery
Version:
React component wrapper around PhotoSwipe
20 lines (19 loc) • 654 B
TypeScript
import PhotoSwipe from 'photoswipe';
import React, { FC } from 'react';
import { BaseGalleryProps } from './gallery-base';
declare type PhotoSwipeUI = (new (pswp: PhotoSwipe<PhotoSwipe.Options>, framework: PhotoSwipe.UIFramework) => PhotoSwipe.UI<PhotoSwipe.Options>) | boolean;
export interface CustomGalleryProps extends BaseGalleryProps {
/**
* Ref to your layout element
*/
layoutRef: React.MutableRefObject<HTMLElement>;
/**
* PhotoSwipe UI class
*/
ui: PhotoSwipeUI;
}
/**
* Gallery component with ability to use specific UI and Layout
*/
export declare const CustomGallery: FC<CustomGalleryProps>;
export {};