Skip to content

PositionValue

PositionValue = number | `${number}%`

Defined in: ui/src/types.ts:130

Offset for a position: "absolute" edge. A raw number is pixels; a "<n>%" string resolves against the containing block (the nearest position: "relative" ancestor’s content box) — the same reference box CSS uses. So top: "100%" means “the containing block’s full height down from its top edge”, i.e. flush against its bottom. This is what lets edge-relative overlays (tooltips, dropdowns) anchor to a shrink-wrapped trigger without measuring it.

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.