{
  "$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{var $v_label = ($p['label'] ?? null)}\n{var $v_attachLabel = ($p['attachLabel'] ?? null)}\n{var $v_modelLabel = ($p['modelLabel'] ?? null)}\n{var $v_send = ($p['send'] ?? null)}\n{var $v_href = ($p['href'] ?? null)}\n{capture $c_10}\n  {if og_t($v_attachLabel)}\n    {capture $c_3}\n      {capture $c_1}\n        {=og_include('icons/LucideIcon.latte', ['name' => 'file-text', 'size' => 16])|noescape}\n        {=og_text($v_attachLabel)}\n      {/capture}\n      {=og_include('compose/Button.latte', ['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' => (string) $c_1])|noescape}\n      {capture $c_2}\n        {=og_include('icons/LucideIcon.latte', ['name' => 'paperclip', 'size' => 16])|noescape}\n        {=og_text($v_attachLabel)}\n      {/capture}\n      {=og_include('compose/Button.latte', ['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' => (string) $c_2])|noescape}\n    {/capture}\n    {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'center', 'attrs' => og_attrs(['data-slot', 'composer-attachments']), 'children' => (string) $c_3])|noescape}\n  {/if}\n  {capture $c_4}\n    {=og_text($v_label)}\n  {/capture}\n  {=og_include('compose/Text.latte', ['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' => (string) $c_4])|noescape}\n  {capture $c_9}\n    {capture $c_7}\n      {capture $c_5}\n        {=og_include('icons/LucideIcon.latte', ['name' => 'plus', 'size' => 16])|noescape}\n      {/capture}\n      {=og_include('compose/Button.latte', ['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' => (string) $c_5])|noescape}\n      {if og_t($v_modelLabel)}\n        {capture $c_6}\n          {=og_include('icons/LucideIcon.latte', ['name' => 'sparkles', 'size' => 16])|noescape}\n          {=og_text($v_modelLabel)}\n          {=og_include('icons/LucideIcon.latte', ['name' => 'chevron-down', 'size' => 16])|noescape}\n        {/capture}\n        {=og_include('compose/Button.latte', ['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' => (string) $c_6])|noescape}\n      {/if}\n    {/capture}\n    {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'center', 'children' => (string) $c_7])|noescape}\n    {capture $c_8}\n      {=og_include('icons/LucideIcon.latte', ['name' => 'arrow-up', 'size' => 16])|noescape}\n    {/capture}\n    {=og_include('compose/Button.latte', ['href' => og_url(og_s($v_href)), 'variant' => 'secondary', 'size' => 'sm', 'layout' => 'icon', 'attrs' => og_attrs(['aria-label', og_coalesce([$v_send, 'Send'])]), 'children' => (string) $c_8])|noescape}\n  {/capture}\n  {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'center', 'justify' => 'between', 'class' => 'h-8 w-full', 'attrs' => og_attrs(['data-slot', 'composer-tools']), 'children' => (string) $c_9])|noescape}\n{/capture}\n{=og_include('compose/Box.latte', ['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' => (string) $c_10])|noescape}\n",
      "path": "blocks/prompt-composer.latte",
      "target": "blocks/prompt-composer.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "prompt-composer",
  "registryDependencies": [
    "box",
    "button",
    "group",
    "lucide-icon",
    "presets",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "Prompt Composer",
  "type": "registry:component"
}
