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