# Enum.UIFlexMode

Roblox Engine API enum from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- HTML page: https://rapi.sleaze.dev/enums/UIFlexMode/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/enums/UIFlexMode

Used with [`UIFlexItem.FlexMode`](https://rapi.sleaze.dev/classes/UIFlexItem.md) to define how the parent [`GuiObject`](https://rapi.sleaze.dev/classes/GuiObject.md) grows or shrinks.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `None` | 0 | The parent [`GuiObject`](https://rapi.sleaze.dev/classes/GuiObject.md) is unaffected and neither shrinks nor grows. |
| `Grow` | 1 | Sets an effective `1:0` grow‑shrink ratio on the parent [`GuiObject`](https://rapi.sleaze.dev/classes/GuiObject.md). Objects set to [`Grow`](https://rapi.sleaze.dev/enums/UIFlexMode.md) never shrink below their basis size, so overflow may occur if the container becomes smaller than the flex line's combined basis size. |
| `Shrink` | 2 | Sets an effective `0:1` grow‑shrink ratio on the parent [`GuiObject`](https://rapi.sleaze.dev/classes/GuiObject.md). Objects set to [`Shrink`](https://rapi.sleaze.dev/enums/UIFlexMode.md) never grow above their basis size, so underflow may occur if the container becomes larger than the flex line's combined basis size. |
| `Fill` | 3 | Sets an effective `1:1` grow‑shrink ratio on the parent [`GuiObject`](https://rapi.sleaze.dev/classes/GuiObject.md). This setting ensures the flex line always fills the container, even if the container size changes. |
| `Custom` | 4 | Enables the `GrowRatio` and `ShrinkRatio` properties for the [`UIFlexItem`](https://rapi.sleaze.dev/classes/UIFlexItem.md), allowing for relative growth or shrinking of the parent [`GuiObject`](https://rapi.sleaze.dev/classes/GuiObject.md) in a ratio compared to other flex objects also under control of a [`UIFlexItem`](https://rapi.sleaze.dev/classes/UIFlexItem.md). |

## Used by

Each entry lists the class, then the role and names of the members that use this type.

- [UIFlexItem](https://rapi.sleaze.dev/classes/UIFlexItem.md): property `FlexMode`
