Components / Presentation

Hover card

Markdown crates/ui/src/hover_card.rs docs.rs

Hover card

Ask your agent

Install the bezel skill once

npx skills add crabtalk/bezel --skill bezel

Then ask

Show a profile preview with initials, bio and location when I hover an @mention.
use ui::hover_card::HoverCard;

div()
    .id("clearloop")
    .hoverable_tooltip(|window, cx| {
        HoverCard::person("CL", "clearloop", "Builds desktop software in Rust.", "Shanghai", window, cx)
    })
    .child("@clearloop")
  • Mount with hoverable_tooltip, not tooltip, or the card closes as the pointer moves onto it.
  • HoverCard::summary is a heading and prose, without the avatar or meta line.
  • The delay is gpui's: .tooltip_show_delay(..) on the element.