<div class='type'>Compose Modifier</div>

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


<h2 id="hoverable-interactionsource-enabled">hoverable</h2>

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


```kotlin
fun Modifier.hoverable(interactionSource: MutableInteractionSource, enabled: Boolean = true) =
    this then if (enabled) HoverableElement(interactionSource) else Modifier
```


Configure component to be hoverable via pointer enter/exit events.

#### Parameters

| | |
| --- | --- |
| interactionSource | `MutableInteractionSource` that will be used to emit `HoverInteraction.Enter` when this element is being hovered. |
| enabled | Controls the enabled state. When `false`, hover events will be ignored. |