layoutFloat
layoutFloat(
insts,maxWidth):Dimensions
Defined in: ui/src/floating.ts:259
Lay out a stack of UI nodes shrink-to-content (optionally capped by
maxWidth, which wraps text). Returns the stacked content size. Shared by
attachTooltip (a single node) and the React side (reconciler roots).
Parameters
Section titled “Parameters”readonly UIElement[]
maxWidth
Section titled “maxWidth”number | undefined
Returns
Section titled “Returns”Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/ui.md.