Skip to main content

tooltip_anchor

Function tooltip_anchor 

Source
pub fn tooltip_anchor(
    controller: State<TooltipController>,
) -> TooltipAnchorBuilder
Expand description

§tooltip_anchor

Attach hover, focus, and touch explanations to a control without changing its action.

§Usage

Wrap a button or icon in the page content of tooltip_provider.

§Parameters

  • controller — controller received from the tooltip provider content slot
  • modifier — modifiers for the trigger wrapper
  • child — the control that receives focus and normal activation

§Examples

use tessera_components::tooltip::TooltipPlacement;
assert_eq!(TooltipPlacement::default(), TooltipPlacement::Above);