{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A terminal or code window: a title bar with three round marks, then the lines. A `command` line starts with the prompt, an `output` line is muted. Static: the typing animation belongs to the port (TypingText contract).",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{#- Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n    Source: packages/compose-gen/specs/patterns/code-window.json\n    A terminal or code window: a title bar with three round marks, then the lines. A `command` line starts with the prompt, an `output` line is muted. Static: the typing animation belongs to the port (TypingText contract).\n    Props (p): title, prompt, lines, className. -#}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_prompt = (p.prompt ?? null) -%}\n{%- set v_lines = (p.lines ?? null) -%}\n{%- set c_7 -%}\n  {%- set c_2 -%}\n    {%- set c_1 -%}\n      {{ og_text(v_title) }}\n    {%- endset -%}\n    {{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_1}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Box.html.twig', {'class': 'flex items-center border-b border-border px-4 py-2', 'children': c_2}, with_context = false) }}\n  {%- set c_6 -%}\n    {%- for v_line in og_l(v_lines) %}\n      {%- set c_5 -%}\n        {%- if og_t(og_eq(og_get(v_line, ['kind']), 'command')) %}\n          {%- set c_3 -%}\n            {{ og_text(v_prompt) }}\n          {%- endset -%}\n          {{ include('compose/Inline.html.twig', {'class': 'select-none text-muted-foreground', 'children': c_3}, with_context = false) }}\n        {%- endif %}\n        {%- set c_4 -%}\n          {{ og_text(og_get(v_line, ['text'])) }}\n        {%- endset -%}\n        {{ include('compose/Inline.html.twig', {'children': c_4}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/ListItem.html.twig', {'class': og_s(og_cnv(['flex gap-2', (og_t(og_eq(og_get(v_line, ['kind']), 'command')) ? 'text-foreground' : 'text-muted-foreground')])), 'attrs': og_attrs(['data-kind', og_get(v_line, ['kind']), 'data-slot', 'code-line']), 'children': c_5}, with_context = false) }}\n    {%- endfor %}\n  {%- endset -%}\n  {{ include('compose/List.html.twig', {'class': 'm-0 flex list-none flex-col gap-2 p-4 font-mono text-sm', 'children': c_6}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['w-full overflow-hidden rounded bg-card text-left inset-ring inset-ring-border', (p.className ?? '')])), 'attrs': og_attrs(['role', 'group', 'aria-label', v_title, 'data-slot', 'code-window']), 'children': c_7}, with_context = false) }}\n",
      "path": "blocks/code-window.html.twig",
      "target": "blocks/code-window.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "code-window",
  "registryDependencies": [
    "box",
    "inline",
    "list",
    "list-item",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Code Window",
  "type": "registry:component"
}
