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