Skip to content

FloatConfig

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

Per-floating-element config. All optional; the floating layer fills sensible defaults (computePosition defaults: center placement, flip + shift on). maxWidth caps content width; it always also clamps to the space available at the resolved side so a bubble can’t run off-screen.

optional flip?: boolean

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


optional maxWidth?: number

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


optional offset?: number

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


optional padding?: number

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


optional placement?: Placement

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


optional shift?: boolean

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

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.