{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A prompt box on a dark band: attachment chips, the prompt line, a plus button, the model pill and a send button. Static links only; a host adds behavior.",
  "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/organisms/prompt-composer.json\n    A prompt box on a dark band: attachment chips, the prompt line, a plus button, the model pill and a send button. Static links only; a host adds behavior.\n    Props (p): label, attachLabel, modelLabel, send, href. -#}\n{%- set v_label = (p.label ?? null) -%}\n{%- set v_attachLabel = (p.attachLabel ?? null) -%}\n{%- set v_modelLabel = (p.modelLabel ?? null) -%}\n{%- set v_send = (p.send ?? null) -%}\n{%- set v_href = (p.href ?? null) -%}\n{%- set c_10 -%}\n  {%- if og_t(v_attachLabel) %}\n    {%- set c_3 -%}\n      {%- set c_1 -%}\n        {{ include('icons/LucideIcon.html.twig', {'name': 'file-text', 'size': 16}, with_context = false) }}\n        {{ og_text(v_attachLabel) }}\n      {%- endset -%}\n      {{ include('compose/Button.html.twig', {'variant': 'ghost', 'size': 'sm', 'class': og_s(og_cnv(['gap-2 overflow-hidden bg-background/10 text-background hover:bg-background/20', og_preset('blocks/presets/defaults.json', ['hero', 'attach'])])), 'children': c_1}, with_context = false) }}\n      {%- set c_2 -%}\n        {{ include('icons/LucideIcon.html.twig', {'name': 'paperclip', 'size': 16}, with_context = false) }}\n        {{ og_text(v_attachLabel) }}\n      {%- endset -%}\n      {{ include('compose/Button.html.twig', {'variant': 'ghost', 'size': 'sm', 'class': og_s(og_cnv(['gap-2 overflow-hidden bg-background/10 text-background hover:bg-background/20', og_preset('blocks/presets/defaults.json', ['hero', 'attach'])])), 'children': c_2}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'attrs': og_attrs(['data-slot', 'composer-attachments']), 'children': c_3}, with_context = false) }}\n  {%- endif %}\n  {%- set c_4 -%}\n    {{ og_text(v_label) }}\n  {%- endset -%}\n  {{ include('compose/Text.html.twig', {'size': 'xs', 'weight': 'semibold', 'class': og_s(og_cnv(['flex w-full items-center leading-5 text-background/80', og_preset('blocks/presets/defaults.json', ['hero', 'promptLine'])])), 'attrs': og_attrs(['data-slot', 'field']), 'children': c_4}, with_context = false) }}\n  {%- set c_9 -%}\n    {%- set c_7 -%}\n      {%- set c_5 -%}\n        {{ include('icons/LucideIcon.html.twig', {'name': 'plus', 'size': 16}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Button.html.twig', {'variant': 'ghost', 'size': 'sm', 'layout': 'icon', 'class': 'bg-background/10 text-background hover:bg-background/20', 'attrs': og_attrs(['aria-label', og_coalesce([v_attachLabel, 'Attach'])]), 'children': c_5}, with_context = false) }}\n      {%- if og_t(v_modelLabel) %}\n        {%- set c_6 -%}\n          {{ include('icons/LucideIcon.html.twig', {'name': 'sparkles', 'size': 16}, with_context = false) }}\n          {{ og_text(v_modelLabel) }}\n          {{ include('icons/LucideIcon.html.twig', {'name': 'chevron-down', 'size': 16}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Button.html.twig', {'variant': 'ghost', 'size': 'sm', 'class': og_s(og_cnv(['gap-2 bg-background/10 text-background hover:bg-background/20', og_preset('blocks/presets/defaults.json', ['hero', 'model'])])), 'children': c_6}, with_context = false) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'children': c_7}, with_context = false) }}\n    {%- set c_8 -%}\n      {{ include('icons/LucideIcon.html.twig', {'name': 'arrow-up', 'size': 16}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Button.html.twig', {'href': og_url(og_s(v_href)), 'variant': 'secondary', 'size': 'sm', 'layout': 'icon', 'attrs': og_attrs(['aria-label', og_coalesce([v_send, 'Send'])]), 'children': c_8}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'justify': 'between', 'class': 'h-8 w-full', 'attrs': og_attrs(['data-slot', 'composer-tools']), 'children': c_9}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['mx-auto flex w-full flex-col gap-4 bg-background/10 p-6 inset-ring inset-ring-background/30', og_preset('blocks/presets/defaults.json', ['hero', 'composer'])])), 'attrs': og_attrs(['data-slot', 'email-form']), 'children': c_10}, with_context = false) }}\n",
      "path": "blocks/prompt-composer.html.twig",
      "target": "blocks/prompt-composer.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "prompt-composer",
  "registryDependencies": [
    "box",
    "button",
    "group",
    "lucide-icon",
    "presets",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Prompt Composer",
  "type": "registry:component"
}
