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
interactionSource: MutableInteractionSourceRequiredMutableInteractionSource that will be used to emit HoverInteraction.Enter when this element is being hovered.
enabled: BooleanOptional
enabled: BooleanOptionalDefault: true
Controls the enabled state. When false, hover events will be ignored.
Library docs
Configure component to be hoverable via pointer enter/exit events.