[{"data":1,"prerenderedAt":441},["ShallowReactive",2],{"mobile-docs-navigation":3,"command-menu-docs":50,"navigation":69,"mobile-docs-page-meta":85,"docs-pages-category":98,"\u002Fdocs\u002Fcomponents\u002Fchat-prompt":108,"surround-\u002Fdocs\u002Fcomponents\u002Fchat-prompt":438},[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":38,"body":110,"category":91,"description":58,"extension":433,"meta":434,"navigation":435,"path":39,"seo":436,"stem":40,"__hash__":437},"docs\u002Fdocs\u002F2.components\u002F4.chat-prompt.md",{"type":111,"value":112,"toc":418},"minimark",[113,117,121,132,136,144,148,153,155,159,163,299,303,347,351,384,388],[114,115],"component-preview",{"name":116},"ChatPromptDemo",[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-prompt.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 { ChatPrompt } from '@\u002Fcomponents\u002Fchat-prompt'\n\nconst input = ref('')\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CChatPrompt v-model=\"input\" @submit=\"handleSubmit\" \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,208,227,247,265,283],"tbody",{},[170,188,189,195,200,205],{},[190,191,192],"td",{},[130,193,194],{},"modelValue",[190,196,197],{},[130,198,199],{},"string",[190,201,202],{},[130,203,204],{},"''",[190,206,207],{},"Current input value (v-model).",[170,209,210,215,219,224],{},[190,211,212],{},[130,213,214],{},"placeholder",[190,216,217],{},[130,218,199],{},[190,220,221],{},[130,222,223],{},"'Type your message here...'",[190,225,226],{},"Textarea placeholder text.",[170,228,229,234,239,244],{},[190,230,231],{},[130,232,233],{},"disabled",[190,235,236],{},[130,237,238],{},"boolean",[190,240,241],{},[130,242,243],{},"false",[190,245,246],{},"Disable the prompt.",[170,248,249,254,258,262],{},[190,250,251],{},[130,252,253],{},"autofocus",[190,255,256],{},[130,257,238],{},[190,259,260],{},[130,261,243],{},[190,263,264],{},"Auto-focus the textarea on mount.",[170,266,267,272,277,280],{},[190,268,269],{},[130,270,271],{},"error",[190,273,274],{},[130,275,276],{},"Error | null",[190,278,279],{},"—",[190,281,282],{},"Error state.",[170,284,285,290,294,296],{},[190,286,287],{},[130,288,289],{},"class",[190,291,292],{},[130,293,199],{},[190,295,279],{},[190,297,298],{},"Additional CSS classes.",[149,300,302],{"id":301},"emits","Emits",[164,304,305,317],{},[167,306,307],{},[170,308,309,312,315],{},[173,310,311],{},"Event",[173,313,314],{},"Payload",[173,316,183],{},[185,318,319,333],{},[170,320,321,326,330],{},[190,322,323],{},[130,324,325],{},"update:modelValue",[190,327,328],{},[130,329,199],{},[190,331,332],{},"Emitted when the input value changes.",[170,334,335,340,344],{},[190,336,337],{},[130,338,339],{},"submit",[190,341,342],{},[130,343,311],{},[190,345,346],{},"Emitted when Enter is pressed (without Shift) or the form is submitted.",[149,348,350],{"id":349},"slots","Slots",[164,352,353,362],{},[167,354,355],{},[170,356,357,360],{},[173,358,359],{},"Slot",[173,361,183],{},[185,363,364,374],{},[170,365,366,371],{},[190,367,368],{},[130,369,370],{},"header",[190,372,373],{},"Content rendered above the textarea.",[170,375,376,381],{},[190,377,378],{},[130,379,380],{},"footer",[190,382,383],{},"Content rendered below the textarea, typically for action buttons.",[149,385,387],{"id":386},"expose","Expose",[164,389,390,401],{},[167,391,392],{},[170,393,394,397,399],{},[173,395,396],{},"Name",[173,398,178],{},[173,400,183],{},[185,402,403],{},[170,404,405,410,415],{},[190,406,407],{},[130,408,409],{},"textareaRef",[190,411,412],{},[130,413,414],{},"Ref\u003CHTMLTextAreaElement>",[190,416,417],{},"Reference to the underlying textarea element.",{"title":128,"searchDepth":419,"depth":419,"links":420},2,[421,422,423,427],{"id":120,"depth":419,"text":16},{"id":134,"depth":419,"text":135},{"id":146,"depth":419,"text":147,"children":424},[425],{"id":151,"depth":426,"text":152},3,{"id":157,"depth":419,"text":158,"children":428},[429,430,431,432],{"id":161,"depth":426,"text":162},{"id":301,"depth":426,"text":302},{"id":349,"depth":426,"text":350},{"id":386,"depth":426,"text":387},"md",{},true,{"title":38,"description":58},"uRbFfCuV9ADf1LPMURN5JfdEjj61jT-VckhUeWWatK0",[439,440],{"title":34,"path":35,"stem":36,"children":-1},{"title":42,"path":43,"stem":44,"children":-1},1782311376738]