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