Tooltip

@Composable
fun Tooltip(tooltip: @Composable () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, style: TooltipStyle = JewelTheme.tooltipStyle, tooltipPlacement: TooltipPlacement = style.metrics.placement, content: @Composable () -> Unit)

Shows a tooltip when the mouse pointer lingers on the content for long enough. Provides the styling for the tooltip container.

Parameters

tooltip

The content of the tooltip.

modifier

Modifier to apply to the content's wrapper

enabled

When true, the tooltip can be shown. When false, it will never show.

style

The style to apply to the tooltip.

tooltipPlacement

The placement of the tooltip.

content

The component for which to show the tooltip on hover.