-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
36 lines (33 loc) · 934 Bytes
/
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
import { CSSProperties, ReactElement, ReactNode } from "react";
export interface MasonryProps {
children: ReactNode;
/**
* Injected by ResponsiveMasonry
*
* Default Value = 3
*/
columnsCount?: number;
/**
* Margin surrounding each item e.g. "10px" or "1.5rem" (css gap property)
*
* Default Value = "0"
*/
gutter?: string;
className?: string;
style?: CSSProperties;
}
export interface ResponsiveMasonryProps {
children: ReactNode;
/**
* A Object containing Keys as breakpoints in px and values as the columns count
*
* Default Value = { 350: 1, 750: 2, 900: 3 }
*/
columnsCountBreakPoints?: {
[key: number]: number;
};
className?: string;
style?: CSSProperties;
}
export default function Masonry(props: MasonryProps): ReactElement;
export function ResponsiveMasonry(props: ResponsiveMasonryProps): ReactElement;