Skip to content

    Browse components

    Tooltip

    Hover and focus tooltip in the native top layer: open delay with instant hand-off between neighbors, auto-flip placement, a tracking arrow and a springy fade-scale.

    Open
    Customize
    top
    right
    bottom
    left

    Installation

    npx shadcn@latest add @glint-ui/tooltip

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/tooltip.json

    Usage

    import { Tooltip } from "@/components/ui/tooltip";
    
    <Tooltip content="Copy link" side="top">
      <button aria-label="Copy link"><Link2 /></button>
    </Tooltip>

    Props

    PropTypeDefaultDescription
    side"top" | "right" | "bottom" | "left""top"Preferred side; flips when there is no room.
    delaynumber500Hover delay before opening (ms).
    sideOffsetnumber8Gap between trigger and bubble (px).
    arrowbooleantrueShow the arrow.
    contentReactNode—Tooltip text or node.
    childrenReactNode—A single focusable trigger element.
    openReactNode—Controlled open state (with onOpenChange).
    classNamestring—Extra classes for the root element.