Skip to content

Commit c890619

Browse files
Add gutterBreakPoints property to index.d.ts for react-responsive-masonry (DefinitelyTyped#74015)
1 parent 2373b7f commit c890619

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

types/react-responsive-masonry/index.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ export interface ResponsiveMasonryProps {
5252
columnsCountBreakPoints?: {
5353
[key: number]: number;
5454
};
55+
/**
56+
* A Object containing Keys as breakpoints in px and values as the gutter size
57+
*
58+
* Default Value = { 350: '10px', 750: '10px', 900: '10px' }
59+
*/
60+
gutterBreakPoints?: {
61+
[key: number]: string;
62+
};
5563
className?: string;
5664
style?: CSSProperties;
5765
}

types/react-responsive-masonry/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@types/react-responsive-masonry",
4-
"version": "2.6.9999",
4+
"version": "2.7.9999",
55
"projects": [
66
"https://github.com/cedricdelpoux/react-responsive-masonry#readme"
77
],

types/react-responsive-masonry/react-responsive-masonry-tests.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const Test = () => {
4444
{/* Test with all props */}
4545
<ResponsiveMasonry
4646
columnsCountBreakPoints={{ 350: 1, 750: 2, 900: 3 }}
47+
gutterBreakPoints={{ 320: "1rem", 768: "1.2rem", 960: "1.5rem" }}
4748
className="responsive-masonry"
4849
style={{ padding: "20px" }}
4950
>

0 commit comments

Comments
 (0)