{
  "$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\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/button\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/icons\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// PromptComposerProps are the props of PromptComposer; the values are the JSON shapes of the TypeScript props.\ntype PromptComposerProps struct {\n\tLabel any `json:\"label\"`\n\tAttachLabel any `json:\"attachLabel\"`\n\tModelLabel any `json:\"modelLabel\"`\n\tSend any `json:\"send\"`\n\tHref any `json:\"href\"`\n}\n\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.\ntempl PromptComposer(p PromptComposerProps) {\n\t{{ vLabel := p.Label }}\n\t{{ vAttachLabel := p.AttachLabel }}\n\t{{ vModelLabel := p.ModelLabel }}\n\t{{ vSend := p.Send }}\n\t{{ vHref := p.Href }}\n\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"mx-auto flex w-full flex-col gap-4 bg-background/10 p-6 inset-ring inset-ring-background/30\", uiutils.Get(presetDefaults, \"hero\", \"composer\"))), Attrs: uiutils.Attrs(\"data-slot\", \"email-form\")}}) {\n\t\tif uiutils.T(vAttachLabel) {\n\t\t\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"center\", BoxProps: box.BoxProps{Attrs: uiutils.Attrs(\"data-slot\", \"composer-attachments\")}}) {\n\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"ghost\", Size: \"sm\", ButtonProps: button.ButtonProps{Class: uiutils.S(uiutils.Cnv(\"gap-2 overflow-hidden bg-background/10 text-background hover:bg-background/20\", uiutils.Get(presetDefaults, \"hero\", \"attach\")))}}) {\n\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"file-text\", Size: 16})\n\t\t\t\t\t{ uiutils.Text(vAttachLabel) }\n\t\t\t\t}\n\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"ghost\", Size: \"sm\", ButtonProps: button.ButtonProps{Class: uiutils.S(uiutils.Cnv(\"gap-2 overflow-hidden bg-background/10 text-background hover:bg-background/20\", uiutils.Get(presetDefaults, \"hero\", \"attach\")))}}) {\n\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"paperclip\", Size: 16})\n\t\t\t\t\t{ uiutils.Text(vAttachLabel) }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t@compose.Text(compose.TextProps{Size: \"xs\", Weight: \"semibold\", TextProps: text.TextProps{Class: uiutils.S(uiutils.Cnv(\"flex w-full items-center leading-5 text-background/80\", uiutils.Get(presetDefaults, \"hero\", \"promptLine\"))), Attrs: uiutils.Attrs(\"data-slot\", \"field\")}}) {\n\t\t\t{ uiutils.Text(vLabel) }\n\t\t}\n\t\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"center\", Justify: \"between\", BoxProps: box.BoxProps{Class: \"h-8 w-full\", Attrs: uiutils.Attrs(\"data-slot\", \"composer-tools\")}}) {\n\t\t\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"center\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"ghost\", Size: \"sm\", Layout: \"icon\", ButtonProps: button.ButtonProps{Class: \"bg-background/10 text-background hover:bg-background/20\", Attrs: uiutils.Attrs(\"aria-label\", uiutils.Coalesce(vAttachLabel, \"Attach\"))}}) {\n\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"plus\", Size: 16})\n\t\t\t\t}\n\t\t\t\tif uiutils.T(vModelLabel) {\n\t\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"ghost\", Size: \"sm\", ButtonProps: button.ButtonProps{Class: uiutils.S(uiutils.Cnv(\"gap-2 bg-background/10 text-background hover:bg-background/20\", uiutils.Get(presetDefaults, \"hero\", \"model\")))}}) {\n\t\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"sparkles\", Size: 16})\n\t\t\t\t\t\t{ uiutils.Text(vModelLabel) }\n\t\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"chevron-down\", Size: 16})\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t@compose.Button(compose.ButtonProps{Variant: \"secondary\", Size: \"sm\", Layout: \"icon\", ButtonProps: button.ButtonProps{Href: uiutils.URL(vHref, false), Attrs: uiutils.Attrs(\"aria-label\", uiutils.Coalesce(vSend, \"Send\"))}}) {\n\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"arrow-up\", Size: 16})\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/prompt-composer.templ",
      "target": "blocks/prompt-composer.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "prompt-composer",
  "registryDependencies": [
    "box",
    "button",
    "group",
    "kit-box",
    "kit-button",
    "kit-text",
    "lucide-icon",
    "presets",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Prompt Composer",
  "type": "registry:component"
}
