<div class='type'>Interface</div>


<a id='references'></a>



<h2 id="overload-1">Overload 1</h2>

<div class='sourceset sourceset-common'>Common</div>



```kotlin
@ExperimentalFlexBoxApi
fun interface FlexConfig
```


Represents a configuration for a flex item within a `FlexBox`.

This configuration is defined via a lambda that operates on a `FlexConfigScope`. Because this
configuration block is executed during the layout phase rather than the composition phase,
reading state variables inside the block will only trigger a layout pass, completely avoiding
costly recompositions.

Configuration properties are applied sequentially. If a property (such as
`grow` or `shrink`) is assigned multiple times
within the configuration block, the final call takes precedence.


## Functions



<hr class="docs-overload-divider">


<h2 id="configure">configure</h2>

```kotlin
fun FlexConfigScope.configure()
```


Applies the configuration to the given `FlexConfigScope`.This method is invoked by the layout
system during the measurement phase, not during composition.