forked from frontend-collective/react-image-lightbox
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
40 lines (38 loc) · 1.16 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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> { }