CodeBlock
ContentSyntax-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.
| Prop | Type | Required | Description |
|---|---|---|---|
| code | string | Yes | - |
| language | string | No | - |
| filename | string | No | - |
Used by templates
No fixed template uses CodeBlock yet. The dynamic composer can still place it in any surface.