Tooltip Box
A tooltip box that anchors a tooltip (a PlainTooltip or RichTooltip) to its content.
The tooltip is shown on hover (desktop / web) or long press (touch), or programmatically via TooltipState.show. It is built on the foundation tooltip primitives, so triggering, the global single-tooltip behavior, and the auto-dismiss timeout match the platform behavior.
Parameters
the PopupPositionProvider positioning the tooltip, usually from TooltipDefaults.rememberTooltipPositionProvider.
the tooltip content.
the TooltipState controlling visibility.
the modifier applied to the anchor wrapper.
whether the tooltip is focusable; true for interactive rich tooltips so an outside tap dismisses them and their actions are reachable.
whether hover / long press on the anchor shows the tooltip.
the anchor content.
A plain tooltip convenience that wraps TooltipBox + PlainTooltip for a short text label.
Parameters
the text label of the tooltip.
the modifier applied to the anchor wrapper.
the TooltipState controlling visibility.
whether hover / long press on the anchor shows the tooltip.
the preferred TooltipAnchorPosition of the tooltip.
the container color of the tooltip.
the content color of the tooltip.
the anchor content.