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

[HoverInteraction] is typically set by [androidx.compose.foundation.hoverable] and hoverable
components."
type: "composable"
---

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


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

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


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


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

`HoverInteraction` is typically set by `androidx.compose.foundation.hoverable` and hoverable
components.

#### Returns

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





