Expand description
Tooltip — the small hover label.
An entity rather than a function because gpui’s .tooltip(..) takes a
builder returning an AnyView: the tooltip is mounted in its own layer,
after the hover delay, so it cannot be an inline element.
ⓘ
use ui::tooltip::Tooltip;
div()
.id("copy")
.tooltip(|window, cx| Tooltip::text("Copy path", window, cx))
.child("⌘C")