-
Notifications
You must be signed in to change notification settings - Fork 145
/
typings.d.ts
34 lines (31 loc) · 969 Bytes
/
typings.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
import { ComponentClass } from "react";
export interface MasonryOptions {
columnWidth?: number | string | HTMLElement | null;
itemSelector?: string;
gutter?: number | string;
percentPosition?: boolean;
horizontalOrder?: boolean;
stamp?: string;
fitWidth?: boolean;
originLeft?: boolean;
originTop?: boolean;
containerStyle?: Object;
transitionDuration?: number | string;
resize?: boolean;
initLayout?: boolean;
}
export interface MasonryPropTypes {
enableResizableChildren?: boolean;
disableImagesLoaded?: boolean;
updateOnEachImageLoad?: boolean;
onImagesLoaded?: (instance: any) => void;
options?: MasonryOptions;
className?: string;
elementType?: string;
style?: Object;
onLayoutComplete?: (instance: any) => void;
onRemoveComplete?: (instance: any) => void;
}
declare const Masonry: ComponentClass<MasonryPropTypes>;
export as namespace Masonry;
export default Masonry;