Skip to main content

Module tooltip

Module tooltip 

Source
Expand description

Tooltip component for contextual help Material Design 3 Tooltip component

Tooltips display brief labels or messages on hover or focus. They help identify or add information to elements.

Reference: https://m3.material.io/components/tooltips/overview

Structs§

RichTooltip
Rich tooltip with additional content
Tooltip
The tooltip popup component
TooltipLocalization
Optional localization keys for a tooltip trigger.
TooltipOverlay
Marker component for the tooltip overlay container
TooltipPlugin
Plugin for the tooltip component
TooltipText
Marker for tooltip text
TooltipTrigger
A tooltip trigger - attach to elements that should show tooltips
TooltipTriggerBuilder
Builder for tooltip triggers

Enums§

TooltipAnimationState
Tooltip animation state
TooltipPosition
Tooltip position relative to anchor
TooltipVariant
Tooltip variants

Constants§

TOOLTIP_DELAY_DEFAULT
Default delay before showing
TOOLTIP_DELAY_SHORT
Short delay (for experienced users)
TOOLTIP_HEIGHT_PLAIN
Plain tooltip height
TOOLTIP_HEIGHT_RICH_MIN
Rich tooltip minimum height
TOOLTIP_MAX_WIDTH
Maximum tooltip width
TOOLTIP_MAX_WIDTH_RICH
Rich tooltip max width
TOOLTIP_OFFSET
Offset from anchor
TOOLTIP_PADDING_PLAIN
Tooltip horizontal padding (plain)
TOOLTIP_PADDING_RICH
Tooltip padding (rich)

Traits§

SpawnTooltipChild
Extension trait to attach tooltips to spawned elements

Functions§

spawn_rich_tooltip
Spawn a rich tooltip
spawn_tooltip
Spawn a plain tooltip (standalone, for manual use)