← Compose Multiplatform Component in Compose Foundation
TooltipArea
Desktop
Sets the tooltip for an element.
Last updated:
Installation
dependencies {
implementation("androidx.compose.foundation:foundation:1.7.0-beta04")
}
Overloads
@Composable
@OptIn(ExperimentalFoundationApi::class
fun TooltipArea(
tooltip: @Composable () -> Unit,
modifier: Modifier = Modifier,
delayMillis: Int = 500,
tooltipPlacement: TooltipPlacement = TooltipPlacement.CursorPoint(
offset = DpOffset(0.dp, 16.dp)
),
content: @Composable () -> Unit
)
Parameters
name | description |
---|---|
tooltip | Composable content of the tooltip. |
modifier | The modifier to be applied to the layout. |
delayMillis | Delay in milliseconds. |
tooltipPlacement | Defines position of the tooltip. |
content | Composable content that the current tooltip is set to. |