You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| columnWidth |`number`|`240`| No | This is the minimum column width. `Masonic` will automatically size your columns to fill its container based on your provided `columnWidth` and `columnGutter` values. It will never render anything smaller than this defined width unless its container is smaller than its value. |
173
-
| columnGutter |`number`|`0`| No | This sets the horizontal space between grid columns in pixels. If `rowGutter` is not set, this also sets the vertical space between cells within a column in pixels. |
174
-
| rowGutter |`number`| Same as `columnGutter`| No | This sets the vertical space between cells within a column in pixels. |
175
-
| columnCount |`number`|| No | By default, `Masonic` derives the column count from the `columnWidth` prop. However, in some situations it is nice to be able to override that behavior e.g. when creating a [`<List>`](#list). |
| columnWidth |`number`|`240`| No | This is the minimum column width. `Masonic` will automatically size your columns to fill its container based on your provided `columnWidth` and `columnGutter` values. It will never render anything smaller than this defined width unless its container is smaller than its value. |
173
+
| columnGutter |`number`|`0`| No | This sets the horizontal space between grid columns in pixels. If `rowGutter` is not set, this also sets the vertical space between cells within a column in pixels. |
174
+
| rowGutter |`number`| Same as `columnGutter`| No | This sets the vertical space between cells within a column in pixels. |
175
+
| columnCount |`number`|| No | By default, `Masonic` derives the column count from the `columnWidth` prop. However, in some situations it is nice to be able to override that behavior e.g. when creating a [`<List>`](#list). |
176
+
| maxColumnCount |`number`|| No | Limits the number of columns used by `Masonic`. Useful for implementing responsive layouts. |
| width |`number`|| Yes | The width of the container you're rendering the grid within, e.g. the container element's `element.offsetWidth`. That said, you can provide any width here. |
448
-
| columnWidth |`number`|`200`| No | The minimum column width. The [`usePositioner()`](#usepositioneroptions-deps) hook will automatically size the columns to fill their container based upon the `columnWidth` and `columnGutter` values. It will never render anything smaller than this width unless its container itself is smaller than its value. This property has no effect if you're providing a `columnCount`. |
449
-
| columnGutter |`number`|`0`| No | This sets the horizontal space between grid columns in pixels. If `rowGutter` is not set, this also sets the vertical space between cells within a column in pixels. |
450
-
| rowGutter |`number`| Same as `columnGutter`| No | This sets the vertical space between cells within a column in pixels. |
451
-
| columnCount |`number`|| No | By default, [`usePositioner()`](#usepositioneroptions-deps) derives the column count from the `columnWidth`, `columnGutter`, and `width` props. However, in some situations it is nice to be able to override that behavior (e.g. creating a [`<List>`-like](#list) component). |
| width |`number`|| Yes | The width of the container you're rendering the grid within, e.g. the container element's `element.offsetWidth`. That said, you can provide any width here. |
449
+
| columnWidth |`number`|`200`| No | The minimum column width. The [`usePositioner()`](#usepositioneroptions-deps) hook will automatically size the columns to fill their container based upon the `columnWidth` and `columnGutter` values. It will never render anything smaller than this width unless its container itself is smaller than its value. This property has no effect if you're providing a `columnCount`. |
450
+
| columnGutter |`number`|`0`| No | This sets the horizontal space between grid columns in pixels. If `rowGutter` is not set, this also sets the vertical space between cells within a column in pixels. |
451
+
| rowGutter |`number`| Same as `columnGutter`| No | This sets the vertical space between cells within a column in pixels. |
452
+
| columnCount |`number`|| No | By default, [`usePositioner()`](#usepositioneroptions-deps) derives the column count from the `columnWidth`, `columnGutter`, and `width` props. However, in some situations it is nice to be able to override that behavior (e.g. creating a [`<List>`-like](#list) component). |
453
+
| maxColumnCount |`number`|| No | Limits the number of columns used by [`usePositioner()`](#usepositioneroptions-deps). Useful for implementing responsive layouts. |
452
454
453
455
#### Returns a [`Positioner`](#positioner)
454
456
@@ -782,12 +784,13 @@ this utility under the hood.
0 commit comments