Absolute
import { Absolute, Rectangle } from "@pibbl/core";Absolute places each direct child from its local left, top, and declared
box style. Its props are AbsoluteProps; its local style is AbsoluteStyle.
Children are recursive PibblNode values. Allocation is finite and does not
measure or retain drawing commands.
<Absolute style={{ width: 320, height: 180 }}> <Rectangle style={{ left: 24, top: 20, width: 120, height: 60, fill: "#2563eb" }} /></Absolute>Compare it with the Absolute and Overlay live example.
Experimental mounted own-style resolution also accepts percentage padding from
the established containing-owner width, including top/bottom. A 200px owner keeps
10% at 20px when this container narrows to 160px. Upstream parent admission remains
authoritative; this does not add a pure measurement provider or infer an owner
from constraints. Try allocated padding.
Actual experimental child allocation resolves raw percentage padding before box conversion, using this parent’s content width. Pure measurement constraints alone do not supply that owner.
API details from source
Section titled “API details from source”
Describes absolute layout for JSX or createElement authoring.
Absolute: PibblPrimitiveComponent<AbsoluteProps, PrimitiveInput<AbsoluteProps, AbsoluteStyle>>Related API: Absolute, PibblPrimitiveComponent, AbsoluteProps, PrimitiveInput, AbsoluteStyle.
Parameters
Section titled “Parameters”props— Authored component inputs, supplied through JSX or createElement. See the linked props and style types.
Throws
Section titled “Throws”When called directly; Pibbl mounts this component through JSX or createElement.
See also
Section titled “See also”View source — packages/core/src/lib/layout/absolute.ts:153
Implementation guidance for agents
Section titled “Implementation guidance for agents”Read the Drawing, layout, and effects companion for ownership, adaptation, failure modes, and verification. Agent start provides the version-selection workflow.
Complete minimal examples
Section titled “Complete minimal examples”- Absolute and overlay layout: Position a block absolutely and center content within an overlay. Plain source
Documentation version
Section titled “Documentation version”Documentation built with @pibbl/core 0.0.2, revision a1dcf8e. ALPHA — NOT FOR PRODUCTION USE.