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