Skip to content

Absolute

Read as Markdown

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.

Describes absolute layout for JSX or createElement authoring.

Absolute: PibblPrimitiveComponent<AbsoluteProps, PrimitiveInput<AbsoluteProps, AbsoluteStyle>>

Related API: Absolute, PibblPrimitiveComponent, AbsoluteProps, PrimitiveInput, AbsoluteStyle.

  • props — Authored component inputs, supplied through JSX or createElement. See the linked props and style types.

When called directly; Pibbl mounts this component through JSX or createElement.

AbsoluteProps

AbsoluteStyle

View source — packages/core/src/lib/layout/absolute.ts:153

Read the Drawing, layout, and effects companion for ownership, adaptation, failure modes, and verification. Agent start provides the version-selection workflow.

Documentation built with @pibbl/core 0.0.2, revision a1dcf8e. ALPHA — NOT FOR PRODUCTION USE.