Code block with optional syntax highlighting.Documentation Index
Fetch the complete documentation index at: https://prefab.prefect.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
JSON Schema for the Code component.
Code block with optional syntax highlighting.Documentation Index
Fetch the complete documentation index at: https://prefab.prefect.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
{
"type": "object",
"properties": {
"type": {
"const": "Code",
"default": "Code",
"type": "string"
},
"id": {
"type": [
"string",
"null"
],
"default": null,
"description": "HTML id attribute for CSS targeting. Applied to the outermost element."
},
"cssClass": {
"type": [
"string",
"null"
],
"default": null,
"description": "CSS/Tailwind classes for styling. Accepts a Responsive() for breakpoint-aware classes."
},
"onMount": {
"default": null,
"description": "Action(s) to execute when this component mounts."
},
"content": {
"description": "Code content",
"type": "string"
},
"language": {
"type": [
"string",
"null"
],
"default": null,
"description": "Syntax highlighting language"
}
},
"required": [
"type",
"content"
]
}