Rich Tooltip
fun TooltipScope.RichTooltip(modifier: Modifier = Modifier, title: @Composable () -> Unit? = null, action: @Composable () -> Unit? = null, caretShape: Shape? = null, maxWidth: Dp = TooltipDefaults.RichTooltipMaxWidth, cornerRadius: Dp = TooltipDefaults.RichTooltipCornerRadius, colors: RichTooltipColors = TooltipDefaults.richTooltipColors(), insideMargin: PaddingValues = TooltipDefaults.RichTooltipInsideMargin, text: @Composable () -> Unit)
A rich tooltip that explains an anchor with an optional title, body text, and an optional action, using the Miuix surface-container card style.
Parameters
modifier
the modifier applied to the tooltip.
title
the optional title shown above the body.
action
the optional action shown below the body.
caret Shape
when non-null, draws a caret pointing at the anchor; null (default) keeps the Miuix caret-less style.
max Width
the maximum width of the tooltip.
corner Radius
the corner radius of the tooltip.
colors
the RichTooltipColors of the tooltip.
inside Margin
the margin inside the tooltip.
text
the body content of the tooltip.