PlainTooltip

fun TooltipScope.PlainTooltip(modifier: Modifier = Modifier, caretShape: Shape? = null, maxWidth: Dp = TooltipDefaults.PlainTooltipMaxWidth, cornerRadius: Dp = TooltipDefaults.PlainTooltipCornerRadius, containerColor: Color = TooltipDefaults.plainTooltipContainerColor, contentColor: Color = TooltipDefaults.plainTooltipContentColor, insideMargin: PaddingValues = TooltipDefaults.PlainTooltipInsideMargin, content: @Composable () -> Unit)

A plain tooltip that briefly describes an anchor with a short text label, using the Miuix inverse surface style.

Parameters

modifier

the modifier applied to the tooltip.

caretShape

when non-null, draws a caret pointing at the anchor; null (default) keeps the Miuix caret-less style.

maxWidth

the maximum width of the tooltip.

cornerRadius

the corner radius of the tooltip.

containerColor

the container color of the tooltip.

contentColor

the content color of the tooltip.

insideMargin

the margin inside the tooltip.

content

the tooltip content, usually a short Text.