Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

hovered

Defines a Style to be applied when the component is hovered.

hovered

Source set: Common
@ExperimentalFoundationStyleApi
fun StyleStateScope.hovered(block: () -> Unit)

Defines a Style to be applied when the component is hovered. The properties within the provided value Style will override or merge with the base style of the component when a hover interaction is detected.

Parameters

block The Style to apply on hover.

Last updated: