[{"data":1,"prerenderedAt":383},["ShallowReactive",2],{"mobile-docs-navigation":3,"command-menu-docs":50,"navigation":69,"mobile-docs-page-meta":85,"docs-pages-category":98,"\u002Fdocs\u002Fcomponents\u002Fchat-message":108,"surround-\u002Fdocs\u002Fcomponents\u002Fchat-message":380},[4],{"title":5,"path":6,"stem":7,"children":8,"page":49},"Docs","\u002Fdocs","docs",[9,19],{"title":10,"path":11,"stem":12,"children":13},"Introduction","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started\u002F1.index",[14,15],{"title":10,"path":11,"stem":12},{"title":16,"path":17,"stem":18},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F1.getting-started\u002F2.installation",{"title":20,"path":21,"stem":22,"children":23},"Components","\u002Fdocs\u002Fcomponents","docs\u002F2.components\u002F0.index",[24,25,29,33,37,41,45],{"title":20,"path":21,"stem":22},{"title":26,"path":27,"stem":28},"Chat","\u002Fdocs\u002Fcomponents\u002Fchat","docs\u002F2.components\u002F1.chat",{"title":30,"path":31,"stem":32},"ChatMessage","\u002Fdocs\u002Fcomponents\u002Fchat-message","docs\u002F2.components\u002F2.chat-message",{"title":34,"path":35,"stem":36},"ChatMessages","\u002Fdocs\u002Fcomponents\u002Fchat-messages","docs\u002F2.components\u002F3.chat-messages",{"title":38,"path":39,"stem":40},"ChatPrompt","\u002Fdocs\u002Fcomponents\u002Fchat-prompt","docs\u002F2.components\u002F4.chat-prompt",{"title":42,"path":43,"stem":44},"ChatPromptSubmit","\u002Fdocs\u002Fcomponents\u002Fchat-prompt-submit","docs\u002F2.components\u002F5.chat-prompt-submit",{"title":46,"path":47,"stem":48},"DocsSearchModal","\u002Fdocs\u002Fcomponents\u002Fdocs-search-modal","docs\u002F2.components\u002F6.docs-search-modal",false,[51,53,55,57,59,61,63,65,67],{"path":27,"title":26,"description":52},"Build Nuxt chat interfaces with installable shadcn-vue components you own and compose.",{"path":31,"title":30,"description":54},"Render an individual chat message bubble with AI SDK parts, actions, and layout control.",{"path":35,"title":34,"description":56},"Compose chat message lists with scrolling behavior, loading states, and action-ready assistant output.",{"path":39,"title":38,"description":58},"Build chat input flows with an auto-resizing prompt, keyboard shortcuts, and flexible slot composition.",{"path":43,"title":42,"description":60},"Handle chat submit, stop, and retry actions with a status-aware control for prompt workflows.",{"path":21,"title":20,"description":62},"Explore reusable components that complement Nuxt templates and real app workflows.",{"path":47,"title":46,"description":64},"Add a lightweight local search modal to Nuxt documentation interfaces.",{"path":17,"title":16,"description":66},"Start from templates or install individual components in your Nuxt project.",{"path":11,"title":10,"description":68},"Stackhacker UI is an open-source collection of Nuxt templates and components for the shadcn-vue community.",[70],{"title":5,"path":6,"stem":7,"children":71,"page":49},[72,76],{"title":10,"path":11,"stem":12,"children":73},[74,75],{"title":10,"path":11,"stem":12},{"title":16,"path":17,"stem":18},{"title":20,"path":21,"stem":22,"children":77},[78,79,80,81,82,83,84],{"title":20,"path":21,"stem":22},{"title":26,"path":27,"stem":28},{"title":30,"path":31,"stem":32},{"title":34,"path":35,"stem":36},{"title":38,"path":39,"stem":40},{"title":42,"path":43,"stem":44},{"title":46,"path":47,"stem":48},[86,88,89,90,92,93,94,95,96],{"path":11,"category":87},"overview",{"path":17,"category":87},{"path":21,"category":87},{"path":27,"category":91},"chat",{"path":31,"category":91},{"path":35,"category":91},{"path":39,"category":91},{"path":43,"category":91},{"path":47,"category":97},"content",[99,100,101,102,103,104,105,106,107],{"path":11,"category":87},{"path":17,"category":87},{"path":21,"category":87},{"path":27,"category":91},{"path":31,"category":91},{"path":35,"category":91},{"path":39,"category":91},{"path":43,"category":91},{"path":47,"category":97},{"id":109,"title":30,"body":110,"category":91,"description":54,"extension":375,"meta":376,"navigation":377,"path":31,"seo":378,"stem":32,"__hash__":379},"docs\u002Fdocs\u002F2.components\u002F2.chat-message.md",{"type":111,"value":112,"toc":361},"minimark",[113,117,121,132,136,144,148,153,155,159,163,304,308,349,353],[114,115],"component-preview",{"name":116},"ChatMessageDemo",[118,119,16],"h2",{"id":120},"installation",[122,123,129],"pre",{"className":124,"code":126,"language":127,"meta":128},[125],"language-bash","npx shadcn-vue@latest add \"https:\u002F\u002Fui.stackhacker.io\u002Fr\u002Fchat-message.json\"\n","bash","",[130,131,126],"code",{"__ignoreMap":128},[118,133,135],{"id":134},"usage","Usage",[122,137,142],{"className":138,"code":140,"language":141,"meta":128},[139],"language-vue","\u003Cscript setup lang=\"ts\">\nimport { Copy } from '@lucide\u002Fvue'\nimport { ChatMessage } from '@\u002Fcomponents\u002Fchat-message'\n\nconst actions = [\n  { label: 'Copy message', icon: Copy }\n]\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CChatMessage\n    id=\"1\"\n    role=\"assistant\"\n    :parts=\"[{ type: 'text', text: 'Hello!' }]\"\n    side=\"left\"\n    :actions=\"actions\"\n  \u002F>\n\u003C\u002Ftemplate>\n","vue",[130,143,140],{"__ignoreMap":128},[118,145,147],{"id":146},"examples","Examples",[149,150,152],"h3",{"id":151},"default","Default",[114,154],{"name":116},[118,156,158],{"id":157},"api-reference","API Reference",[149,160,162],{"id":161},"props","Props",[164,165,166,184],"table",{},[167,168,169],"thead",{},[170,171,172,176,179,181],"tr",{},[173,174,175],"th",{},"Prop",[173,177,178],{},"Type",[173,180,152],{},[173,182,183],{},"Description",[185,186,187,206,223,240,260,288],"tbody",{},[170,188,189,195,200,203],{},[190,191,192],"td",{},[130,193,194],{},"id",[190,196,197],{},[130,198,199],{},"string",[190,201,202],{},"—",[190,204,205],{},"Message ID.",[170,207,208,213,218,220],{},[190,209,210],{},[130,211,212],{},"role",[190,214,215],{},[130,216,217],{},"'user' | 'assistant' | 'system'",[190,219,202],{},[190,221,222],{},"Message role.",[170,224,225,230,235,237],{},[190,226,227],{},[130,228,229],{},"parts",[190,231,232],{},[130,233,234],{},"UIMessage['parts']",[190,236,202],{},[190,238,239],{},"Message parts from AI SDK.",[170,241,242,247,252,257],{},[190,243,244],{},[130,245,246],{},"side",[190,248,249],{},[130,250,251],{},"'left' | 'right'",[190,253,254],{},[130,255,256],{},"'left'",[190,258,259],{},"Which side to render the message.",[170,261,262,267,272,277],{},[190,263,264],{},[130,265,266],{},"actions",[190,268,269],{},[130,270,271],{},"ChatMessageAction[]",[190,273,274],{},[130,275,276],{},"[]",[190,278,279,280,283,284,287],{},"Action buttons shown on hover. Each ",[130,281,282],{},"icon"," is a Vue component and each ",[130,285,286],{},"label"," is used for the tooltip and accessible button name.",[170,289,290,295,299,301],{},[190,291,292],{},[130,293,294],{},"class",[190,296,297],{},[130,298,199],{},[190,300,202],{},[190,302,303],{},"Additional CSS classes.",[149,305,307],{"id":306},"slots","Slots",[164,309,310,321],{},[167,311,312],{},[170,313,314,317,319],{},[173,315,316],{},"Slot",[173,318,162],{},[173,320,183],{},[185,322,323,335],{},[170,324,325,330,332],{},[190,326,327],{},[130,328,329],{},"leading",[190,331,202],{},[190,333,334],{},"Content rendered before the message (e.g., avatar).",[170,336,337,341,346],{},[190,338,339],{},[130,340,97],{},[190,342,343],{},[130,344,345],{},"{ id, role, parts }",[190,347,348],{},"Custom message content renderer.",[149,350,352],{"id":351},"types","Types",[122,354,359],{"className":355,"code":357,"language":358,"meta":128},[356],"language-ts","interface ChatMessageAction {\n  label: string\n  icon: Component\n  onClick?: (e: MouseEvent, message: UIMessage) => void\n}\n","ts",[130,360,357],{"__ignoreMap":128},{"title":128,"searchDepth":362,"depth":362,"links":363},2,[364,365,366,370],{"id":120,"depth":362,"text":16},{"id":134,"depth":362,"text":135},{"id":146,"depth":362,"text":147,"children":367},[368],{"id":151,"depth":369,"text":152},3,{"id":157,"depth":362,"text":158,"children":371},[372,373,374],{"id":161,"depth":369,"text":162},{"id":306,"depth":369,"text":307},{"id":351,"depth":369,"text":352},"md",{},true,{"title":30,"description":54},"RRL_pWjkGW27EfdOGzoOMaOkfm0pKA4qi958Uyj9V0Y",[381,382],{"title":26,"path":27,"stem":28,"children":-1},{"title":34,"path":35,"stem":36,"children":-1},1782356647785]