{
  "$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/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * A prompt box on a dark band: attachment chips, the prompt line, a plus button, the model pill and a send\n * button. Static links only; a host adds behavior.\n */\nimport { type ReactNode } from \"react\";\nimport { Box, Button, Group, Text } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { defaults } from \"../presets/defaults\";\nimport { cn, urlOf } from \"../utils\";\n\nexport type PromptComposerProps = {\n  label?: string;\n  attachLabel?: string;\n  modelLabel?: string;\n  send?: string;\n  href?: string;\n};\n\nexport function PromptComposer({ label, attachLabel, modelLabel, send, href }: PromptComposerProps) {\n  return (\n    <Box\n      className={cn(\n        \"mx-auto flex w-full flex-col gap-4 bg-background/10 p-6 inset-ring inset-ring-background/30\",\n        defaults.hero.composer\n      )}\n      data-slot=\"email-form\"\n    >\n      {attachLabel ? (\n        <Group gap=\"2\" align=\"center\" data-slot=\"composer-attachments\">\n          <Button\n            variant=\"ghost\"\n            size=\"sm\"\n            className={cn(\n              \"gap-2 overflow-hidden bg-background/10 text-background hover:bg-background/20\",\n              defaults.hero.attach\n            )}\n          >\n            <LucideIcon name=\"file-text\" size={16} />\n            {attachLabel}\n          </Button>\n          <Button\n            variant=\"ghost\"\n            size=\"sm\"\n            className={cn(\n              \"gap-2 overflow-hidden bg-background/10 text-background hover:bg-background/20\",\n              defaults.hero.attach\n            )}\n          >\n            <LucideIcon name=\"paperclip\" size={16} />\n            {attachLabel}\n          </Button>\n        </Group>\n      ) : null}\n      <Text\n        size=\"xs\"\n        weight=\"semibold\"\n        className={cn(\"flex w-full items-center leading-5 text-background/80\", defaults.hero.promptLine)}\n        data-slot=\"field\"\n      >\n        {label}\n      </Text>\n      <Group gap=\"2\" align=\"center\" justify=\"between\" className=\"h-8 w-full\" data-slot=\"composer-tools\">\n        <Group gap=\"2\" align=\"center\">\n          <Button\n            variant=\"ghost\"\n            size=\"sm\"\n            layout=\"icon\"\n            className=\"bg-background/10 text-background hover:bg-background/20\"\n            aria-label={(attachLabel ?? \"Attach\")}\n          >\n            <LucideIcon name=\"plus\" size={16} />\n          </Button>\n          {modelLabel ? (\n            <Button\n              variant=\"ghost\"\n              size=\"sm\"\n              className={cn(\"gap-2 bg-background/10 text-background hover:bg-background/20\", defaults.hero.model)}\n            >\n              <LucideIcon name=\"sparkles\" size={16} />\n              {modelLabel}\n              <LucideIcon name=\"chevron-down\" size={16} />\n            </Button>\n          ) : null}\n        </Group>\n        <Button href={urlOf(href)} variant=\"secondary\" size=\"sm\" layout=\"icon\" aria-label={(send ?? \"Send\")}>\n          <LucideIcon name=\"arrow-up\" size={16} />\n        </Button>\n      </Group>\n    </Box>\n  );\n}\n",
      "path": "components/prompt-composer.tsx",
      "target": "components/prompt-composer.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "react",
      "component"
    ]
  },
  "name": "prompt-composer",
  "registryDependencies": [
    "compose",
    "lucide-icon",
    "presets",
    "utils"
  ],
  "runtime": "react",
  "title": "Prompt Composer",
  "type": "registry:component"
}
