> For the complete documentation index, see [llms.txt](https://docs.overdare.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overdare.com/development/api-reference/enums/uiflexmode.md).

# UIFlexMode

## Overview

UIFlexMode is an Enum that specifies how a UI element takes its share of the leftover or insufficient space of UIListLayout.

This is used in the FlexMode property of UIFlexItem.

## Items

| Name   | Value | Description                                                                         |
| ------ | ----- | ----------------------------------------------------------------------------------- |
| None   | 0     | Does not participate in space distribution and keeps its authored size.             |
| Grow   | 1     | Grows by receiving space only when there is leftover space.                         |
| Shrink | 2     | Shrinks by giving up space only when space is insufficient.                         |
| Fill   | 3     | Grows by receiving leftover space, and also shrinks when space is insufficient.     |
| Custom | 4     | Uses the GrowRatio and ShrinkRatio values of UIFlexItem as the distribution ratios. |
