androidx.compose.foundation

hoverable

Function · from org.jetbrains.compose.foundation:foundation:1.12.2

No hand-written docs yet.

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

Parameters

fun Modifier.hoverable(
    interactionSource: MutableInteractionSource,
    enabled: Boolean = true,
)

interactionSource: MutableInteractionSourceRequired

MutableInteractionSource that will be used to emit HoverInteraction.Enter when this element is being hovered.

enabled: BooleanOptional

Default: true

Controls the enabled state. When false, hover events will be ignored.

Library docs

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