Skip to content

Commit 308fce2

Browse files
chore(release): 4.1.0
# [4.1.0](v4.0.1...v4.1.0) (2025-04-22) ### Features * **use-positioner:** add maxColumnWidth property ([#178](#178)) ([850e21a](850e21a))
1 parent 850e21a commit 308fce2

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# [4.1.0](https://github.com/jaredLunde/masonic/compare/v4.0.1...v4.1.0) (2025-04-22)
2+
3+
### Features
4+
5+
- **use-positioner:** add maxColumnWidth property ([#178](https://github.com/jaredLunde/masonic/issues/178)) ([850e21a](https://github.com/jaredLunde/masonic/commit/850e21a857646241fed5e9c5fa7fcca0d11d75bc))
6+
17
## [4.0.1](https://github.com/jaredLunde/masonic/compare/v4.0.0...v4.0.1) (2024-07-30)
28

39
### Bug Fixes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "masonic",
3-
"version": "4.0.1",
3+
"version": "4.1.0",
44
"description": "",
55
"license": "MIT",
66
"author": "Jared Lunde <jared.lunde@gmail.com> (https://jaredlunde.com/)",

types/masonry.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export interface MasonryProps<Item>
2828
| "rowGutter"
2929
| "columnCount"
3030
| "maxColumnCount"
31+
| "maxColumnWidth"
3132
> {
3233
/**
3334
* Scrolls to a given index within the grid. The grid will re-scroll

types/use-positioner.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import * as React from "react";
1414
* @param options.rowGutter
1515
* @param options.columnCount
1616
* @param options.maxColumnCount
17+
* @param options.maxColumnWidth
1718
*/
1819
export declare function usePositioner(
1920
{
@@ -23,6 +24,7 @@ export declare function usePositioner(
2324
rowGutter,
2425
columnCount,
2526
maxColumnCount,
27+
maxColumnWidth,
2628
}: UsePositionerOptions,
2729
deps?: React.DependencyList
2830
): Positioner;
@@ -41,6 +43,10 @@ export interface UsePositionerOptions {
4143
* @default 200
4244
*/
4345
columnWidth?: number;
46+
/**
47+
* The maximum column width. Calculated column widths will be capped at this value.
48+
*/
49+
maxColumnWidth?: number;
4450
/**
4551
* This sets the horizontal space between grid columns in pixels. If `rowGutter` is not set, this
4652
* also sets the vertical space between cells within a column in pixels.

0 commit comments

Comments
 (0)