AttachTooltipOptions
Defined in: ui/src/attachTooltip.ts:11
Options for attachTooltip.
Properties
Section titled “Properties”content
Section titled “content”content: () =>
UIElement
Defined in: ui/src/attachTooltip.ts:17
Builds the tooltip body, called once. Headless — return a styled
node (e.g. a UIPanel 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:31
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:25
Gap in px between the anchor and the bubble. Default 6.
placement?
Section titled “placement?”
optionalplacement?:Placement
Defined in: ui/src/attachTooltip.ts:23
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.