Tooltip
Attach a tooltip to notebook content.
Astryx Props
JSON-safe Tooltip props forwarded to Astryx.
Supported Astryx props include:
children(ReactNode): Trigger content. When anchorRef is provided, children may be omitted.anchorRef(React.RefObject<HTMLElement>): External tooltip anchor used for sibling-mode rendering.content(ReactNode; required): Tooltip content, typically short non-interactive text.placement(LayerPlacement; default 'above'): Placement relative to the anchor.alignment(LayerAlignment; default 'center'): Alignment along the placement axis.delay(number; default 200): Delay in milliseconds before showing on hover.hideDelay(number; default 0): Delay in milliseconds before hiding after mouse or focus leave.focusTrigger('auto' or 'always' or 'never'; default 'auto'): Controls whether focus opens the tooltip.isEnabled(boolean; default true): Enables or disables hover and focus triggers.onOpenChange((isOpen: boolean) => void): Called when tooltip visibility changes.hasHoverIndication('auto' or boolean; default 'auto'): Controls dashed underline hover indication on the trigger.isOpen(boolean): Controlled open state.isDefaultOpen(boolean): Initial uncontrolled open state.
Props typed as React nodes, render functions, event handlers, refs, or StyleX styles are documented for Astryx parity but cannot be serialized directly from Python unless the wrapper adapts them.
See Astryx component docs: https://astryx.atmeta.com/components/Tooltip.
Functions
constructor__init__(content, trigger=None, *, label='', placement=None, alignment=None, delay=None, hide_delay=None, enabled=None, open=None, default_open=None, **props) -> Noneparamcontentstr | ChildInputOverlay or tooltip content.
paramtriggerChildInput= NoneTrigger content used by disclosure or overlay components.
paramlabelstr= ''Visible or accessible label for the component.
paramplacementstr | None= NonePlacement relative to the trigger.
paramalignmentstr | None= NoneAlignment along the placement axis.
paramdelayint | None= NoneShow delay in milliseconds.
paramhide_delayint | None= NoneHide delay in milliseconds.
paramenabledbool | None= NoneWhether hover and focus triggers are enabled.
paramopenbool | None= NoneOptional controlled open state.
paramdefault_openbool | None= NoneInitial uncontrolled open state.
parampropsAny= {}Returns
None