---
title: "collectIsPressedAsState"
description: "Subscribes to this [MutableInteractionSource] and returns a [State] representing whether this
component is pressed or not.

[PressInteraction] is typically set by [androidx.compose.foundation.clickable] and clickable
higher level components, such as buttons."
type: "composable"
---

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


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

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


```kotlin
@Composable
fun InteractionSource.collectIsPressedAsState(): State<Boolean>
```


Subscribes to this `MutableInteractionSource` and returns a `State` representing whether this
component is pressed or not.

`PressInteraction` is typically set by `androidx.compose.foundation.clickable` and clickable
higher level components, such as buttons.

#### Returns

| | |
| --- | --- |
|  | `State` representing whether this component is being pressed or not |





