Skip to main content

with_tooltip

Function with_tooltip 

Source
pub fn with_tooltip<T: StatefulInteractiveElement>(
    control: T,
    text: impl Into<SharedString>,
) -> T
Expand description

Attach a macOS tooltip without changing the control’s concrete type. GPUI owns hover delay, placement, dismissal, and cleanup when the owner leaves. Keep an accessible label on icon-only controls; a tooltip is supplementary.