UnreviewedAny data-* attribute is forwarded to the rendered element.
Any aria-* attribute is forwarded to the rendered element.
Optional UnreviewedchildrenSupplementary text or markup. Content stays in light DOM for application CSS.
Optional UnrevieweddelayWait in milliseconds after hover or keyboard focus. Use 50 for a short delay.
Optional UnreviewedplacementWhich side of the anchor the bubble prefers. Auto-flips to the other side when there isn't room.
Optional UnreviewedroundRound the bubble to a 20px radius (matching a round menu). Pass a number
(px) or a CSS length string for a custom radius.
Optional UnreviewedfollowFollow the cursor instead of pinning under the anchor. The bubble is
pinned (anchored beneath the target) by default; pass follow for the
cursor-tracking behavior, which fades by distance as the cursor leaves.
Optional UnreviewedinteractiveKeep content available while the pointer or keyboard focus is inside it.
Enables pointer events and pins the bubble even with follow. Essential
actions belong in a Menu or Dialog with an explicit trigger.
Optional UnreviewedcontainContain bubbling pointer, mouse, touch, click, context-menu, and wheel
handlers. true contains JSX events while preserving Tooltip and child callbacks.
'native' stops propagation at the web component, including to native
parents, but blocks delegated React handlers on the Tooltip and its children,
including onClick, onPointerDown, and onWheel. Use true when those
callbacks are needed. Native listeners inside the boundary still run. Both enable
interactive behavior and preserve browser defaults, keyboard, and focus.
Capture respects both modes. Custom native parents must check
isContainedEvent with true; ancestor capture handlers must check it
in either mode because they run before the Tooltip.
Optional UnreviewedtruncatedOnly show when the target is actually truncated (its text overflows and is
ellipsized); a label that fits gets no tooltip. The check is a UI-thread
layout read, re-measured on each show. By default it measures every Anta
ellipsizing label part inside the anchor, then the anchor itself —
override with truncatedSelector.
Optional UnreviewedtruncatedCSS selector (resolved within the anchor) for the element or elements
whose overflow decides whether a truncatedOnly tooltip shows.
Optional UnreviewedclassAdds CSS classes to the root element and preserves its existing classes.
Optional UnreviewedstyleInline CSS styles on the root element.
Optional UnreviewedidHTML id attribute.
Optional UnreviewedtitleHTML title attribute, shown as a browser tooltip on hover.
Optional UnreviewedslotNamed slot in a parent web component, such as slot="header" in a <Dialog>.
Optional UnreviewedtabTab order. Set to -1 to skip the element when tabbing.
Optional UnreviewedkeyReact/Preact reconciliation key when rendered inside a list. Consumed by the JSX runtime (not forwarded as a DOM attribute).
OptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalon
Common props for JSX component wrappers.