Skip to content

CodeBlock

Content

Syntax-colored code with language label and copy button. Use for any code, config, command or diff snippet.

Props

Generated from the Zod definition. In A2UI 1.0 any value may also be a { "@path" } binding into the surface data model or a { "@call" } function call.

PropTypeRequiredDescription
codestringYes-
languagestringNo-
filenamestringNo-

Used by templates

No fixed template uses CodeBlock yet. The dynamic composer can still place it in any surface.