Optionaloptions: A2UIBuilderOptionsThrow on the first structural problem.
Optionaloptions: { id?: string; size?: number; variant?: string }Optionaloptions: { id?: string; label?: string }Validates refs, then returns the serialised widget payload. Call root() first (unless listCard()).
Optionaloptions: A2UIBuildOptionsOptionaloptions: { id?: string }Optionaloptions: { id?: string; value?: boolean }Optionalopts: {Drop every component, the root selection and any listCard payload.
Optionalchildren: string[]Optionaloptions: { id?: string }How many components are registered (excluding the implicit root).
Optionaloptions: { id?: string }Registered components nothing references -- encoded but never rendered.
A copy of the registered component node.
Whether id was registered on this instance.
Every registered component id, in registration order.
Optionaloptions: { fit?: string; id?: string; variant?: string }Optionalchildren: string[]Optionaloptions: { id?: string }Optionaloptions: ListCardOptionsOptionaloptions: { id?: string }Optionalprops: Record<string, any>Optionaloptions: { id?: string }Unregister one component; returns whether it existed.
Optionalchildren: string[]Optionaloptions: { id?: string }Optionalopts: Record<string, any>Override the catalog url used in createSurface.catalogId.
Override the A2UI spec version stamped on the payload.
Optionaloptions: { height?: number; id?: string }Optionaloptions: { id?: string; value?: boolean }Optionalchildren: string[]Optionaloptions: { activeTab?: number; id?: string }Optionaloptions: { id?: string; variant?: string }Optionaloptions: { id?: string; variant?: string }Every structural problem; empty when the widget is safe to build.
Optionaloptions: { id?: string }
A2UI/Bloks widget builder.
JAP@Fix (§2.37 / v2.4.7): this block previously documented the class as "fluent" and typed every component factory as returning
this. At runtime they return the generated component id string (siblings reference each other by id -- that's the whole point of the API), soui.text('a').text('b')type-checked and then died with "ui.text(...).text is not a function", while the correctconst id = ui.text('a')was flagged as a type error. Factories are typedstringnow; only the terminal/config methods (root/listCard/setVersion/...) chain.