Flow
import { Flow, Text } from "@pibbl/core";Flow uses FlowProps and FlowStyle to place recursive direct children in
source order. Children retain their own local drawing geometry; the parent
resolves only placement. Declare finite boxes when a child needs allocated
space.
<Flow style={{ width: 220, height: 180, direction: "vertical", gap: 8 }}> <Text style={{ fill: "#0f172a", font: "16px sans-serif" }}>First</Text> <Text style={{ fill: "#0f172a", font: "16px sans-serif" }}>Second</Text></Flow>See the Flow 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 sequential flow layout for JSX or createElement authoring.
Flow: PibblPrimitiveComponent<FlowProps, PrimitiveInput<FlowProps, FlowStyle>>Related API: Flow, PibblPrimitiveComponent, FlowProps, PrimitiveInput, FlowStyle.
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/flow.ts:171
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”- Flow and flex layout: Stack a banner with a flexible row of marks. Plain source
Documentation version
Section titled “Documentation version”Documentation built with @pibbl/core 0.0.2, revision a1dcf8e. ALPHA — NOT FOR PRODUCTION USE.