AttachTooltipOptions
Defined in: ui/src/attachTooltip.ts:12
Options for attachTooltip.
Properties
Section titled “Properties”content
Section titled “content”content: () =>
UIElement
Defined in: ui/src/attachTooltip.ts:18
Builds the tooltip body, called once. Headless — return a styled
node (e.g. a UIPanel/PanelNode with a background + padding) for
visuals; nothing is added for you.
Returns
Section titled “Returns”maxWidth?
Section titled “maxWidth?”
optionalmaxWidth?:number
Defined in: ui/src/attachTooltip.ts:32
Cap the bubble width (px). Long content wraps instead of running off screen; the bubble always also clamps to the space available at the resolved side.
offset?
Section titled “offset?”
optionaloffset?:number
Defined in: ui/src/attachTooltip.ts:26
Gap in px between the anchor and the bubble. Default 6.
placement?
Section titled “placement?”
optionalplacement?:Placement
Defined in: ui/src/attachTooltip.ts:24
Preferred side, optionally aligned ("top", "bottom-start", …).
Default "top" (center-aligned). The bubble flips to the opposite side
and shifts along the cross axis to stay on-screen.