<div class='type'>Composable Function</div>


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



<h2 id="rememberupdatedstylestate-interactionsource-block">rememberUpdatedStyleState</h2>

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


```kotlin
@ExperimentalFoundationStyleApi
@Composable
inline fun rememberUpdatedStyleState(
    interactionSource: InteractionSource?,
    block: @Composable (MutableStyleState) -> Unit = {},
): StyleState
```


Create, remember and update a `StyleState` for use as a parameter of a
`androidx.compose.ui.Modifier.styleable` modifier.

#### Parameters

| | |
| --- | --- |
| interactionSource | the interaction source to observe for the style state. |
| block | a lambda that will initializes or updates the style state. |