Skip to content

layoutFloat

layoutFloat(insts, maxWidth): Dimensions

Defined in: ui/src/floating.ts:201

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