{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chat",
"title": "Chat",
"description": "A set of composable chat UI components with container query support.",
"dependencies": [
"@radix-ui/react-avatar"
],
"registryDependencies": [
"avatar",
"button",
"textarea"
],
"files": [
{
"path": "registry/new-york/chat/chat.tsx",
"content": "/**\n * @module chat\n *\n * Root container for the chat UI. Provides a flex column layout with\n * container query support (`@container/chat`) so child components can\n * adapt to the available width.\n *\n * **Important:** Give `Chat` or its parent a defined height or max-height (e.g. via\n * `className=\"h-screen\"`) to enable proper scrolling in `ChatMessages`.\n *\n * @see {@link ChatHeader} for the sticky top header.\n * @see {@link ChatMessages} for the scrollable message area.\n * @see {@link ChatToolbar} for the sticky bottom input area.\n */\n\nimport { cn } from \"@/lib/utils\";\n\nexport interface ChatProps extends React.ComponentProps<\"div\"> {\n children?: React.ReactNode;\n}\n\n/**\n * Root container component that establishes the chat layout structure\n * with container queries and flex column layout for header, messages,\n * and toolbar sections.\n *\n * Uses container queries (e.g. `@md/chat:`, `@2xl/chat:`) to adapt\n * layout based on available width rather than viewport size.\n *\n * @example\n * ```tsx\n *