Tooltip
Use Tooltip to name an icon-only button or add a short hint to an element, shown on hover and focus. Keep it to plain text people can do without; for richer or interactive content, use Popover; to confirm an action, Popconfirm; for text that is cut off, Ellipsis already shows one.
The trigger is the single child, and it receives the tooltip’s ref and event handlers. Text is wrapped in a span; a component of your own must pass ref and the other props on to its DOM element, or the tooltip can’t open or find its place.
Tooltip names or explains its trigger in a short label, shown on hover and keyboard focus (tap on touch screens). It is a Popover in the inverse colors with role="tooltip", and takes the same props.
#Demos
#Basic
Put the tooltip on the element it describes. For an icon-only button it is the visible name; still give the button an aria-label.
#Long text and no arrow
Long tips wrap at 280px. showArrow={false} drops the arrow.
#With a Popover on the same button
A tooltip and a popover can share one trigger: the click opens the popover, hovering still shows the tooltip.
#Props
Tooltip takes every Popover prop; content is the tip. The defaults differ only in what they draw: inverse colors, a smaller size and a 280px maximum width. Any other prop, and ref, goes to the trigger.
The trigger gets aria-describedby pointing at the tooltip, so screen readers announce the tip after the trigger’s name.