{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "chat-composer",
  "type": "registry:component",
  "title": "Chat Composer",
  "description": "A presentational chat composer shell with slots for attachments, input, and actions. Adapted from Pearl.",
  "files": [
    {
      "path": "registry/tonic/chat-composer/chat-composer.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nexport type ChatComposerProps = Omit<\n  React.ComponentProps<\"div\">,\n  \"children\"\n> & {\n  attachments?: React.ReactNode\n  input?: React.ReactNode\n  leading?: React.ReactNode\n  trailing?: React.ReactNode\n}\n\n/**\n * Presentational chat composer shell. Pass your own input, actions, and\n * attachments through the slots — this component only owns the chrome.\n */\nexport function ChatComposer({\n  attachments,\n  input,\n  leading,\n  trailing,\n  className,\n  ...props\n}: ChatComposerProps) {\n  return (\n    <div\n      data-slot=\"chat-composer\"\n      className={cn(\n        \"relative flex w-full flex-col gap-2 rounded-[28px] border border-border bg-card p-2 shadow-none outline-none\",\n        \"focus-within:border-border focus-within:shadow-none focus-within:outline-none focus-within:ring-0\",\n        \"dark:bg-card\",\n        className\n      )}\n      {...props}\n    >\n      {attachments ? (\n        <div data-slot=\"chat-composer-attachments\" className=\"px-1 pt-1\">\n          {attachments}\n        </div>\n      ) : null}\n      {input ? (\n        <div data-slot=\"chat-composer-input\" className=\"min-w-0\">\n          {input}\n        </div>\n      ) : null}\n      {leading || trailing ? (\n        <div\n          data-slot=\"chat-composer-actions\"\n          className=\"flex items-center justify-between gap-2\"\n        >\n          <div\n            data-slot=\"chat-composer-leading\"\n            className=\"flex min-w-0 items-center gap-1\"\n          >\n            {leading}\n          </div>\n          <div\n            data-slot=\"chat-composer-trailing\"\n            className=\"flex shrink-0 items-center gap-1\"\n          >\n            {trailing}\n          </div>\n        </div>\n      ) : null}\n    </div>\n  )\n}\n",
      "type": "registry:component"
    }
  ]
}