pub fn TooltipBox(
text: impl Into<String>,
state: Rc<TooltipState>,
content: View,
config: TooltipConfig,
) -> ViewExpand description
Wraps content with a tooltip label shown above it when state is visible.
When TooltipConfig::enable_user_input is true (default), the tooltip is
shown on pointer hover and dismissed on leave.
Usage:
ⓘ
let tip = TooltipState::new();
TooltipBox("I'm a tooltip", tip.clone(), Modifier::new(), Button("Hover me", {
let tip = tip.clone();
move || tip.show()
}));