Tooltips
Edit pageLast modified: 01 October 2024You can add a tooltip to any component using the TooltipArea
composable. TooltipArea
is similar to the Box
component and can show a tooltip.
The TooltipArea
composable has the following main parameters:
tooltip
, composable content of the tooltip.tooltipPlacement
, defines the tooltip position. You can specify an anchor (the mouse cursor or the component), an offset, and an alignment.delayMillis
, time in milliseconds after which the tooltip is shown. The default value is 500 ms.
TooltipArea(tooltip = { Surface(
{...}

Gif
What's next?
Explore the tutorials about other desktop components.
Thanks for your feedback!
Was this page helpful?