---
title: "MutableInteractionSource"
description: "Return a new [MutableInteractionSource] that can be hoisted and provided to components, allowing
listening to [Interaction] changes inside those components.

This should be [remember]ed before it is provided to components, so it can maintain its state
across compositions."
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
@JsName("funMutableInteractionSource")
@RememberInComposition
fun MutableInteractionSource(): MutableInteractionSource
```


Return a new `MutableInteractionSource` that can be hoisted and provided to components, allowing
listening to `Interaction` changes inside those components.

This should be `remember`ed before it is provided to components, so it can maintain its state
across compositions.



