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