diff --git a/package.json b/package.json index a9bee73..679f4ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rbxts/zenui-core", - "version": "0.6.3", + "version": "0.7.0", "description": "", "main": "out/init.lua", "scripts": { diff --git a/src/Layouts/ColumnView.tsx b/src/Layouts/ColumnView.tsx index 0bb77bd..160cbe1 100644 --- a/src/Layouts/ColumnView.tsx +++ b/src/Layouts/ColumnView.tsx @@ -8,6 +8,17 @@ export interface ColumnProps { * The width of this column */ readonly Width?: UDim; + + /** + * The maximum width of this column + */ + readonly MaxWidth?: number; + + /** + * The minimum width of this column + */ + readonly MinWidth?: number; + /** * The vertical alignment of the contents in this column */ @@ -189,6 +200,17 @@ export class ColumnView extends Roact.Component { } AutomaticSize={useAutomaticSize ? "Y" : "None"} > + {(props.MaxWidth !== undefined || props.MinWidth !== undefined) && ( + + )} { } AutomaticSize={this.props.RowWidth === new UDim() ? "X" : "None"} > + {(props.MaxHeight !== undefined || props.MinHeight !== undefined) && ( + + )}