@antadesign/anta
    Preparing search index...

    Function TooltipUnreviewed

    • Tooltip — a small floating bubble that describes the element it's placed inside. Render <Tooltip> as a child of the element it annotates; it doesn't affect that element's layout.

      Shows on hover (after delay) and on keyboard focus; dismisses on mouse leave, blur, Escape, or when the anchor scrolls away. On touch devices it opens on press-and-hold (a tap never surfaces it) and lingers briefly after release. Pinned under the anchor by default — pass follow to make it track the cursor instead.

      Requires @antadesign/anta/elements to be imported (client-side only) to register the underlying custom element.

      Parameters

      Returns any

      import { Tooltip } from '@antadesign/anta'
      import '@antadesign/anta/elements'

      <button>
      Save
      <Tooltip>Saves your work</Tooltip>
      </button>
      <span style={{ cursor: 'help' }}>
      Status
      <Tooltip placement="top">
      <strong>Healthy</strong> — last checked 2m ago
      </Tooltip>
      </span>
      <button>
      Hover me
      <Tooltip follow>Tracks the pointer</Tooltip>
      </button>