Shows a tooltip positioned against the content tracked by anchor.
The tooltip is shown for as long as this composable is in the composition, so the caller owns the trigger: wrap the call in a condition driven by hover, focus, long press, or an explicit request. Nothing is drawn until anchor has been positioned.
placement and dimensions' popup gap configure the tooltip position relative to the tracked anchor bounds.
title: String
primary tooltip text
anchor: UiSetAnchor
tracked bounds of the content described by this tooltip
modifier: Modifier
modifier applied to the tooltip bubble inside the popup; the popup itself has no layout node that can receive a modifier
subtitle: String?
optional supporting tooltip text
icon: (@Composable () -> Unit)?
optional icon inside the tooltip bubble
placement: TooltipPlacement
preferred side of the anchor; the popup flips when that side does not fit
colors: TooltipColors
bubble, text, icon, and outline colors
dimensions: TooltipDimensions
bubble padding, icon, width, gap, and elevation geometry
shape: Shape
tooltip bubble shape
titleTextStyle: TextStyle
primary text typography
subtitleTextStyle: TextStyle
supporting text typography
titleMaxLines: Int
maximum visible title lines before ellipsizing
subtitleMaxLines: Int
maximum visible subtitle lines before ellipsizing