File tree Expand file tree Collapse file tree 4 files changed +14
-1
lines changed
Expand file tree Collapse file tree 4 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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/)" ,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 */
1819export 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.
You can’t perform that action at this time.
0 commit comments