Skip to content

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).

readonly UIElement[]

number | undefined

Dimensions

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.