hoverable
Common
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. |