41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import * as React from 'react';
|
|
|
|
export interface ILightBoxProps {
|
|
mainSrc: string;
|
|
nextSrc?: string;
|
|
prevSrc?: string;
|
|
mainSrcThumbnail?: string;
|
|
prevSrcThumbnail?: string;
|
|
nextSrcThumbnail?: string;
|
|
onCloseRequest(): void;
|
|
onMovePrevRequest?(): void;
|
|
onMoveNextRequest?(): void;
|
|
onImageLoad?(): void;
|
|
onImageLoadError?(): void;
|
|
imageLoadErrorMessage?: React.ReactNode;
|
|
onAfterOpen?(): void;
|
|
discourageDownloads?: boolean;
|
|
animationDisabled?: boolean;
|
|
animationOnKeyInput?: boolean;
|
|
animationDuration?: number;
|
|
keyRepeatLimit?: number;
|
|
keyRepeatKeyupBonus?: number;
|
|
imageTitle?: React.ReactNode | string;
|
|
imageCaption?: React.ReactNode | string;
|
|
imageCrossOrigin?: string;
|
|
toolbarButtons?: React.ReactNode[];
|
|
reactModalStyle?: any;
|
|
reactModalProps?: any;
|
|
imagePadding?: number;
|
|
clickOutsideToClose?: boolean;
|
|
enableZoom?: boolean;
|
|
wrapperClassName?: string;
|
|
nextLabel?: string;
|
|
prevLabel?: string;
|
|
zoomInLabel?: string;
|
|
zoomOutLabel?: string;
|
|
closeLabel?: string;
|
|
}
|
|
|
|
export default class Lightbox extends React.Component<ILightBoxProps, never> { }
|