{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "message", "title": "Message", "description": "Conversation content with authorship and optional actions.", "registryDependencies": [ "@manner/utils", "@manner/manner-theme" ], "files": [ { "path": "registry/manner/ai/message.tsx", "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/cn\"\n\ntype MessageProps = React.ComponentProps<\"article\"> & {\n from: \"user\" | \"assistant\"\n label?: string\n actions?: React.ReactNode\n}\n\nfunction Message({ from, label, actions, children, className, ...props }: MessageProps) {\n return (\n
\n {label ?? (from === \"user\" ? \"You\" : \"Manner\")}\n
{children}
\n {actions && }\n
\n )\n}\n\nexport { Message, type MessageProps }\n", "type": "registry:ui" } ], "type": "registry:ui" }