[{"data":1,"prerenderedAt":1754},["ShallowReactive",2],{"\u002Fdocs\u002Fcomponents\u002Fbuilding":3,"dl-navigation-docs":864,"shared":1208,"surroundings-\u002Fdocs\u002Fcomponents\u002Fbuilding":1748},{"id":4,"title":5,"_llmSection":6,"_local":6,"_schemaOrg":6,"_seo":6,"body":7,"description":855,"extension":856,"ignore":6,"meta":857,"navigation":858,"path":859,"seo":860,"sitemap":861,"stem":862,"__hash__":863},"docs\u002Fdocs\u002F03.components\u002F02.building.md","Components Building & Styling",null,{"type":8,"value":9,"toc":844},"minimark",[10,30,142,222,684,763,802],[11,12,13,14,18,19,25,26,29],"p",{},"Besides the wide range of pre-built ",[15,16,17],"strong",{},"DocLayer"," components, you can also create your own custom ones. And since you're working with ",[15,20,21],{},[22,23,24],"dl-link",{},"$nuxt-ui",", you can use any of the library's available components within yours. There are ",[15,27,28],{},"two main scenarios for using custom components",": within the app itself, to extend and\u002For build upon, and as a content components.",[31,32,34,38,53,70,93,109,112,131],"dl-section",{"id":33},"creating-custom-content-components",[35,36,37],"h2",{"id":33},"Creating custom content components",[11,39,40,41,44,45,48,49,52],{},"Since it's difficult to anticipate the specific application-level components you may need, we've provided ",[15,42,43],{},"simple tools to help you create globally accessible content components"," that can be used to ",[15,46,47],{},"extend content presentation"," or to build ",[15,50,51],{},"reusable content containers",".",[54,55,56],"blockquote",{},[11,57,58,59,64,65,69],{},"We plan to build ",[22,60,63],{"label":61,"hash":62},"several more components","planned-content-components","$docs-components",", so if you would like to contribute and build them with us, don't hesitate to ",[22,66,68],{"label":67},"send your Pull Request","$dl-repo-prs"," - it will be highly appreciated. 💪",[71,72,75,85],"dl-callout",{"title":73,"type":74},"Built-in content components","note",[11,76,77,80,81,84],{},[15,78,79],{},"DocLayer's"," built-in ",[15,82,83],{},"content components are created using the same techniques"," described below. As you work with these components, you can refer to the relevant sections of this page to better understand how they function and how you can use them.",[11,86,87,88,92],{},"While building your own components remember about ",[22,89,63],{"label":90,"hash":91},"naming and location restrictions","restricted-components",". Try to avoid conflicts and margin issues.",[11,94,95,96,100,101,104,105,108],{},"To create a custom content component, simply add it to the ",[97,98,99],"code",{},"app\u002Fcomponents\u002Fcontent"," directory, as the ",[22,102,103],{},"$nuxt-content"," structure reference. It will then be automatically available for use in your Markdown files. Any application-wise components can be stored outside the ",[97,106,107],{},"content"," folder.",[11,110,111],{},"This is a simple example of your desired structure:",[113,114,115,125],"dl-code",{},[116,117,123],"pre",{"className":118,"code":120,"language":121,"meta":122},[119],"language-bash","app\u002F\n├── components\u002F\n│   ├── content\u002F\n│   │   ├── CustomContentComponent.vue\n│   ├── CustomRegularComponent.vue\n│   └── ...\n\"cref:5fzmhe\"\n","bash","",[97,124,120],{"__ignoreMap":122},[126,127,128],"template",{"v-slot:ui":122},[11,129,130],{},"{ \"actions\": \"hidden\" }",[11,132,133,134,141],{},"To build a custom content component, you can use the ",[135,136,138],"a",{"href":137},"#dlwrapper",[97,139,140],{},"DlWrapper",". It's a powerful tool that allows you to define and apply Tailwind classes directly to your component's markup, including resolving them in Markdown files, without needing to modify any CSS files. It can also extend properties directly from your Markdown files, and supports resolving data dynamically.",[31,143,145,149,163,167,173,199,219],{"id":144},"dlwrapper",[35,146,147],{"id":144},[97,148,140],{},[71,150,153],{"title":151,"type":152},"false","alert",[11,154,155,156,158,159,162],{},"The ",[97,157,140],{}," ",[15,160,161],{},"is not a content component"," and is not intended to be used directly within Markdown files. Instead, it serves as the foundation for building content components.",[164,165,166],"dl-prompter",{},"what for to use dl-wrapper component",[11,168,169,170,172],{},"To help you build performant and extensible content components, we've created a ",[97,171,140],{}," - for us, the main foundation for building content blocks. It serves three primary purposes:",[174,175,176,187,193],"ul",{},[177,178,179,182,183,186],"li",{},[15,180,181],{},"resolving"," the component's ",[15,184,185],{},"markup"," UI,",[177,188,189,192],{},[15,190,191],{},"lazy-load"," the component when needed,",[177,194,195,198],{},[15,196,197],{},"extend \u002F overwrite"," the component's props.",[71,200,201,212],{"title":151,"type":74},[11,202,203,204,207,208,211],{},"Think of it as ",[15,205,206],{},"unlocking greater capabilities for content components"," that can be used inside Markdown. While it does help you develop faster, its ",[15,209,210],{},"main purpose is to provide the best possible experience"," for content creators.",[11,213,214,215,218],{},"Note that ",[15,216,217],{},"nearly all pre-built content components utilize this component"," and inherit all of its features.",[11,220,221],{},"Let's explore each feature to learn how to effectively use this unique component inside your DocLayer application.",[31,223,225,229,232,235,238,241,244,247,262,265,277,280,304,327,330,336,343,388,424,428,452,466,471,474,481,492,503,511,517,521,528,545,560,569,573,587,590,598,632,636,651,669],{"id":224},"styling-content-components",[226,227,228],"h3",{"id":224},"Styling content components",[164,230,231],{},"how to use the dlwrapper component",[164,233,234],{},"how to build a custom content component",[164,236,237],{},"how does dlwrapper component work",[164,239,240],{},"how to use dlwrapper component in markdown files",[164,242,243],{},"how to use dlwrapper to create a new content component",[164,245,246],{},"what dlwrapper component does",[11,248,155,249,251,252,257,258,261],{},[97,250,140],{}," component allows you to define and apply ",[15,253,254],{},[22,255,256],{},"$tailwind"," classes directly to your component’s markup, including resolving them in the Markdown files, ",[15,259,260],{},"without any CSS files modifications",". It wraps your custom component, passing a set of classes to specific elements within your markup structure.",[11,263,264],{},"This is how the simple implementation looks like:",[113,266,269],{"tabs":267,"max-height":268},"CustomContentComponent.vue","100rem",[116,270,275],{"className":271,"code":273,"language":274,"meta":122},[272],"language-vue","\u003Cscript lang=\"ts\">\nconst ui = defineDoclayerComponentUi({\n  container: ['absolute', 'top-1', 'left-2'],\n});\n\u003C\u002Fscript>\n\u003Cscript setup lang=\"ts\">\nconst { resolvePropsUi } = useComponentUi();\n\nwithDefaults(\n  defineProps\u003C\n    {\n      \u002F\u002F your custom props\n    } & UiProps\u003Ctypeof ui>\n  >(),\n  {\n    ui,\n  },\n);\n\n\u002F\u002F the rest of your custom component logic\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CDlWrapper v-slot=\"{ ui: $ui }\" :ui=\"resolvePropsUi(props)\">\n    \u003Cdiv :class=\"$ui.container.base\">\n      \u003C!-- container markup -->\n    \u003C\u002Fdiv>\n    \u003C!-- the rest of your custom component markup -->\n  \u003C\u002FDlWrapper>\n\u003C\u002Ftemplate>\n\"cref:fwewfb\"\n","vue",[97,276,273],{"__ignoreMap":122},[11,278,279],{},"Let's break down what's happening in this example, step by step.",[11,281,155,282,284,285,288,289,292,293,296,297,300,301,52],{},[97,283,140],{}," component takes a ",[97,286,287],{},"ui"," prop, which should be resolved using the ",[97,290,291],{},"resolvePropsUi"," handler - you can get it from the ",[97,294,295],{},"useComponentUi"," composable. Pass to this handler your component's ",[97,298,299],{},"props",". Under the hood it will resolve the ",[15,302,303],{},"final UI configuration for your custom component",[11,305,306,307,309,310,313,314,317,318,323,324],{},"To set component's UI (under the ",[97,308,287],{}," prop) use ",[97,311,312],{},"defineDoclayerComponentUi"," macro function. This macro allows you to ",[15,315,316],{},"define Tailwind classes for each part of your component's markup as an arrays of strings",", making it easier to get class name suggestions (thanks to ",[15,319,320],{},[22,321,322],{},"$typescript",") right in your Vue file. These arrays are automatically joined into valid Tailwind class strings becoming available to transfer into your component’s markup. ",[15,325,326],{},"You can also add your own utility classes at any time.",[11,328,329],{},"This is how Tailwind classes will be suggested to you by the Typescript compiler - you'll get the list of all default ones.",[331,332],"dl-image",{"alt":333,"caption":334,"src":335},"Defining custom DocLayer component classes","Tailwind classes suggestions for UI property","\u002Fimages\u002Fss-005.png",[11,337,338,339,342],{},"Make sure to use the ",[97,340,341],{},"UiProps"," type when defining properties, as Typescript will automatically infer the correct classes values within your component's HTML markup.",[71,344,346,360],{"title":345,"type":74},"Diving a bit deeper",[11,347,348,350,351,354,355,357,358,52],{},[97,349,287],{}," property is ",[15,352,353],{},"intended to be internal one",", used only to define the component's markup ",[22,356,256],{}," classes. You should not pass it manually when using your custom component in Markdown files, as it will be handled automatically by the ",[97,359,140],{},[11,361,362,363,350,365,368,369,372,373,383,384,387],{},"You may wonder as well, why the ",[97,364,287],{},[15,366,367],{},"defined outside"," of the ",[97,370,371],{},"script setup"," block. This is because ",[15,374,375,376,382],{},"Vue ",[135,377,381],{"href":378,"rel":379},"https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FGlossary\u002FHoisting",[380],"nofollow","hoists"," static declarations"," to the module scope, making them accessible to the ",[97,385,386],{},"setup"," function before it is executed, not causing any data reading issues.",[11,389,390,391,393,394,396,397,400,401,403,404,407,408,411,412,416,417,420,421,423],{},"Next, ",[97,392,140],{}," provides a special slot that gives you access to the resolved ",[97,395,287],{}," object (here referred as ",[97,398,399],{},"$ui",", not to collide with the ",[97,402,287],{}," property). ",[15,405,406],{},"Internally, the component merges"," the ",[97,409,410],{},"props.ui"," configuration defined in your custom component with ",[135,413,415],{"href":414},"#styling-inside-the-markdown-files","any overrides passed from the Markdown file",". The ",[15,418,419],{},"resulting Tailwind classes are then made available through the slot data",", so you can easily apply them in your component’s markup. Even better, the entire ",[97,422,287],{}," structure is type-safe and will be auto-suggested in your component's template.",[331,425],{"alt":426,"caption":426,"src":427},"UI structure suggestions inside the HTML markup","\u002Fimages\u002Fss-006.png",[71,429,430],{"title":151,"type":74},[11,431,432,433,436,437,440,441,443,444,446,447,451],{},"You may notice the special ",[97,434,435],{},"base"," property inside the ",[97,438,439],{},"container"," object. This one is automatically and specifically added for defining ",[97,442,287],{}," configuration for the ",[22,445,24],{}," components. You can ",[135,448,450],{"href":449},"#working-with-nuxt-ui-components","learn more about it"," in the section below.",[71,453,455],{"title":454,"type":74},"Styling limitations",[11,456,457,458,461,462,465],{},"Some ",[15,459,460],{},"components have more complex markup",", additional elements, or behaviors that are difficult to style using only simple Tailwind classes. In these cases, the built-in components use more advanced styling techniques, including pseudo elements or special utility classes that set component-specific CSS variables. These ",[15,463,464],{},"variables are defined near each relevant component"," and will be documented in their respective pages. This approach still gives you extensive - if not complete - control over the component’s appearance, without needing to create separate custom CSS files.",[467,468,470],"h4",{"id":469},"styling-inside-the-markdown-files","Styling inside the Markdown files",[164,472,473],{},"how to use ui slot to style content components",[11,475,476,477,480],{},"Now that you've defined your component's UI, it will be ",[15,478,479],{},"styled as you intended and displayed consistently throughout your application",". But what if you want to change its appearance in just one specific place? Without needing to use CSS files and create special custom classes to override the predefined ones, you can easily style your component directly from the Markdown file. This is how you can do it.",[113,482,484],{"tabs":483},"content.md",[116,485,490],{"className":486,"code":488,"language":489,"meta":122},[487],"language-markdown","::custom-content-component\n\nsome content here\n\n\u002F\u002F [!code highlight:2]\n#ui\n{ \"container\": \"w-100\" }\n\n\u003C!-- results in: \"absolute top-1 left-2 w-100\"  -->\n\n::\n\"cref:cb17iw\"\n","markdown",[97,491,488],{"__ignoreMap":122},[11,493,494,495,498,499,502],{},"With the special ",[97,496,497],{},"#ui"," slot, ",[15,500,501],{},"you can either add to or overwrite the classes assigned to specific markup elements"," of your component, as previously defined. The example above shows how to add new classes to any component's markup element, while the example below demonstrates how to completely overwrite \u002F replace full class list.",[113,504,505],{"tabs":483},[116,506,509],{"className":507,"code":508,"language":489,"meta":122},[487],"::custom-content-component\n\nsome content here\n\n\u002F\u002F [!code highlight:2]\n#ui\n{ \"container\": \"() => 'absolute right-1 bottom-2 w-200'\" }\n\n\u003C!-- results in: \"absolute right-1 bottom-2 w-200\"  -->\n\n::\n\"cref:m6wup7\"\n",[97,510,508],{"__ignoreMap":122},[11,512,513,514,52],{},"As you can see, to completely replace the classes, you need to ",[15,515,516],{},"use a dedicated callback function",[467,518,520],{"id":519},"styling-inside-the-markdown-files-with-css-variables","Styling inside the Markdown files with CSS variables",[11,522,523,524,527],{},"What's even more interesting ",[15,525,526],{},"you can use CSS variables to style components markup"," directly from the Markdown file. You can do it like this:",[113,529,531,537],{"tabs":530},"content.md, styles.css",[116,532,535],{"className":533,"code":534,"language":489,"meta":122},[487],"::custom-content-component\n\nsome content here\n\n\u002F\u002F [!code highlight:2]\n#ui\n{ \"container\": \"bg-bloody text-shadow-shiny\" }\n\n::\n\"cref:dgldff\"\n",[97,536,534],{"__ignoreMap":122},[116,538,543],{"className":539,"code":541,"language":542,"meta":122},[540],"language-css","\u002F* the rest of the main stylesheet *\u002F\n\n@theme {\n  \u002F\u002F [!code highlight:2]\n  --color-bloody: red;\n  --text-shadow-shiny: 0 5rem 5rem #ccc;\n}\n\"cref:ruv2he\"\n","css",[97,544,541],{"__ignoreMap":122},[11,546,547,548,551,552,555,556,559],{},"It's important to note that the ",[15,549,550],{},"classes and variables you use must be Tailwind-based",". For example, if you're using a ",[97,553,554],{},"bg-*"," class to set the background color, you need to define a corresponding CSS variable (like ",[97,557,558],{},"--color-bloody",") that Tailwind references for that class, as it's strictly connected.",[71,561,562],{"title":151},[11,563,564,565,568],{},"Remember our claim? ",[15,566,567],{},"Everything remains within the Markdown",". 😜",[467,570,572],{"id":571},"styling-inline-components","Styling inline components",[11,574,575,576,579,580,583,584,586],{},"The examples above apply to ",[15,577,578],{},"block components",". Inline components use a different syntax, so you can't use named slots with them. To address this, we've introduced a special ",[97,581,582],{},"iui"," prop, which is passed from the ",[97,585,140],{}," to any of your custom components. With this prop, you can provide a string object containing your custom Tailwind classes and pass them directly to the component.",[11,588,589],{},"Yo can do it like this:",[113,591,592],{"tabs":483},[116,593,596],{"className":594,"code":595,"language":489,"meta":122},[487],":custom-content-inline-component{:iui='{\"container\": \"absolute right-1 bottom-2 w-200\"}'}\n\"cref:rb2kj8\"\n",[97,597,595],{"__ignoreMap":122},[71,599,602,609],{"title":600,"type":601},"Inline components limitations","warning",[11,603,604,605,608],{},"Please note that ",[15,606,607],{},"inline components don't support overwriting the full class list"," - you just can't use named slots with them. Although you can enforce your custom classes by:",[174,610,611,626],{},[177,612,613,614,158,617,622,623,625],{},"using the ",[97,615,616],{},"!",[135,618,621],{"href":619,"rel":620},"https:\u002F\u002Ftailwindcss.com\u002Fdocs\u002Fstyling-with-utility-classes#using-the-important-modifier",[380],"(important) modifier",", added with ",[97,624,582],{}," prop,",[177,627,628,629,631],{},"or defining them as a block component(s) instead, using ",[97,630,287],{}," slot.",[467,633,635],{"id":634},"working-with-nuxt-ui-components","Working with Nuxt UI components",[11,637,638,639,641,642,650],{},"Since we have ",[22,640,24],{}," on board, you may want to use its components inside your own custom ones. One of the most important features of Nuxt UI components is that you can adjust their UI in a way similar to DocLayer components. Each ",[135,643,646,647,649],{"href":644,"rel":645},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Fbutton#ui-prop",[380],"Nuxt UI component exposes a ",[97,648,287],{}," prop",", which lets you provide your own set of classes to customize the component’s style variants.",[11,652,653,654,656,657,659,660,662,663,665,666,668],{},"In many cases, these components have a ",[97,655,435],{}," property within the ",[97,658,287],{}," object. This ",[97,661,435],{}," property is typically responsible for styling the component’s main container. While not every component follows this pattern, it is quite common. For this reason, when you define a UI element using the ",[97,664,312],{}," macro, we also include a special ",[97,667,435],{}," property.",[11,670,671,672,674,675,677,678,681,682,52],{},"This means that when you pass custom styles to Nuxt UI components, you don’t need to define the ",[97,673,435],{}," property yourself - it will be passed automatically. Additionally, you can use the ",[97,676,435],{}," value for your own component’s container. Simply use ",[97,679,680],{},"$ui.base"," wherever you need it, and it will be automatically resolved by the ",[97,683,140],{},[31,685,687,690,693,696,714,723,740,743,751,759],{"id":686},"extending-content-component-properties",[226,688,689],{"id":686},"Extending content component properties",[164,691,692],{},"how to use dynamic data within content components",[164,694,695],{},"extending overwriting props properties inside the markdown files",[11,697,155,698,700,701,704,705,710,711,631],{},[97,699,140],{}," component - used as the foundation for any custom content component - ",[15,702,703],{},"can handle dynamic data for any of your block component properties",". Thanks to the special ",[22,706,709],{"label":707,"hash":708},"`usePropsExtender`","usepropsextender","$docs-utils-composables"," composable, you can overwrite props values by using the dedicated ",[97,712,713],{},"#props",[11,715,716,717,722],{},"Here’s how you can do it for globally defined data within the ",[22,718,721],{"label":719,"hash":720},"`dl.inDocData`","dlindocdata","$docs-guidelines-configuration",":",[113,724,726,732],{"tabs":725},"content.md, app.config.ts",[116,727,730],{"className":728,"code":729,"language":489,"meta":122},[487],"::dl-callout{title=\"My callout title\"}\n\nMy callout content\n\n#props\n{\"title\": \"{{ $doc.newCalloutTitle }}\" }\n\n\u003C!-- or mixing with some static content -->\n\n#props\n{\"title\": \"{{ $doc.newCalloutTitle }} has just landed!\" }\n\n::\n\"cref:ey5xng\"\n",[97,731,729],{"__ignoreMap":122},[116,733,738],{"className":734,"code":736,"language":737,"meta":122},[735],"language-ts","export default defineDoclayerAppConfig({\n  \u002F\u002F the rest of the config\n  dl: {\n    inDocData: {\n      newCalloutTitle: 'My new callout title',\n    },\n  },\n});\n\"cref:p76ebb\"\n","ts",[97,739,736],{"__ignoreMap":122},[11,741,742],{},"And this is how you can do it with locally (per page) defined data:",[113,744,745],{"tabs":483},[116,746,749],{"className":747,"code":748,"language":489,"meta":122},[487],"---\n... the rest of the frontmatter\n_local:\n  newCalloutTitle: My new callout title\n---\n\n::dl-callout{title=\"My callout title\"}\n\nMy callout content\n\n#props\n{\"title\": \"{{ $doc._local.newCalloutTitle }}\" }\n\n\u003C!-- or mixing with some static content -->\n\n#props\n{\"title\": \"{{ $doc._local.newCalloutTitle }} has just landed!\" }\n\n::\n\"cref:py5bsv\"\n",[97,750,748],{"__ignoreMap":122},[11,752,753,754,52],{},"More about defining local data ",[22,755,758],{"label":756,"hash":757},"you can read here","local-data-binding","$docs-guidelines-writing-content",[760,761,762],"dl-renderer",{},"rref:section-props-extending",[31,764,766,769,772,784,793],{"id":765},"lazy-loading-content-components",[226,767,768],{"id":765},"Lazy loading content components",[164,770,771],{},"how to lazy load content components",[11,773,155,774,158,776,779,780,783],{},[97,775,140],{},[15,777,778],{},"component supports lazy loading of content components",". To enable this, pass the ",[97,781,782],{},"lazy"," prop to the component. With this setup, your component will be rendered only when it becomes visible - that is, when the user scrolls to the section of the page where the component appears. You can define it like this:",[113,785,787],{"tabs":786},"Component.vue",[116,788,791],{"className":789,"code":790,"language":274,"meta":122},[272],"\u003CDlWrapper :lazy=\"true\" \u002F>\n\u003C!-- or with the Markdown property resolution -->\n\u003CDlWrapper :lazy=\"utilBooleanString(true) || false\" \u002F>\n\"cref:4fsind\"\n",[97,792,790],{"__ignoreMap":122},[11,794,795,796,801],{},"You can also control lazy loading from Markdown files. As shown above, simply use the ",[22,797,800],{"label":798,"hash":799},"`utilBooleanString`","utilbooleanstring","$docs-utils-utilities"," function to resolve the boolean value passed as a string.",[31,803,805,810,813,827],{"id":804},"dlrenderer",[35,806,807],{"id":804},[97,808,809],{},"DlRenderer",[11,811,812],{},"Now that you know how to create a new custom content components, let's explore how you can use them along with reusable ones.",[11,814,815,816,819,820,822,823,826],{},"When writing content, you may want to ",[15,817,818],{},"avoid repeating the same chunks of information"," throughout your files, having at the same time more control over reusable sections. Since ",[22,821,103],{}," doesn't offer a strict solution for this, ",[15,824,825],{},"DocLayer provides you with an easy and extensive way"," to handle it.",[11,828,829,830,158,833,158,837,840,841,52],{},"You can ",[15,831,832],{},"do this easily using the dedicated",[22,834,836],{"label":835},"`DlRenderer`","$docs-components-renderer",[15,838,839],{},"component",". For more details on how to use it with your content, ",[22,842,836],{"label":843},"check the component's page",{"title":122,"searchDepth":845,"depth":845,"links":846},2,[847,848,854],{"id":33,"depth":845,"text":37},{"id":144,"depth":845,"text":140,"children":849},[850,852,853],{"id":224,"depth":851,"text":228},3,{"id":686,"depth":851,"text":689},{"id":765,"depth":851,"text":768},{"id":804,"depth":845,"text":809},"Create custom content components with DlWrapper","md",{},{"label":140},"\u002Fdocs\u002Fcomponents\u002Fbuilding",{"title":5,"description":855},{"loc":859},"docs\u002F03.components\u002F02.building","pNS_Lllr1evbRHoc48RGpNtTjixbQOnemXwAuJFXs3U",[865],{"title":866,"path":867,"stem":868,"children":869,"page":920},"Docs","\u002Fdocs","docs",[870,889,921,1027,1056,1087,1110,1125,1167,1188],{"title":871,"path":872,"stem":873,"children":874,"description":6,"icon":888},"Getting Started","\u002Fdocs\u002Fgetting-started","docs\u002F01.getting-started\u002F01.index",[875,878,883],{"title":876,"path":872,"stem":873,"description":877},"Introduction","What DocLayer is, who it’s for, and how it can help",{"title":879,"path":880,"stem":881,"description":882},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F01.getting-started\u002F02.installation","How to install and run DocLayer",{"title":884,"path":885,"stem":886,"description":887},"FAQ","\u002Fdocs\u002Fgetting-started\u002Ffaq","docs\u002F01.getting-started\u002F03.faq","Frequently asked questions about DocLayer","rocket",{"title":890,"description":6,"icon":891,"path":892,"stem":893,"children":894,"page":920},"Guidelines","file-pen-line","\u002Fdocs\u002Fguidelines","docs\u002F02.guidelines",[895,900,905,910,915],{"title":896,"path":897,"stem":898,"description":899},"Internals","\u002Fdocs\u002Fguidelines\u002Finternals","docs\u002F02.guidelines\u002F02.internals","How DocLayer's structure, its architecture and internals fit together",{"title":901,"path":902,"stem":903,"description":904},"Configuration","\u002Fdocs\u002Fguidelines\u002Fconfiguration","docs\u002F02.guidelines\u002F03.configuration","Customize DocLayer via `app.config.ts` and its configuration",{"title":906,"path":907,"stem":908,"description":909},"Writing Content","\u002Fdocs\u002Fguidelines\u002Fwriting-content","docs\u002F02.guidelines\u002F04.writing-content","Write Markdown with Nuxt Content, DocLayer and prebuilt utilities",{"title":911,"path":912,"stem":913,"description":914},"Defining Metadata","\u002Fdocs\u002Fguidelines\u002Fdefining-metadata","docs\u002F02.guidelines\u002F05.defining-metadata","Set global and per-page SEO metadata for your DocLayer app",{"title":916,"path":917,"stem":918,"description":919},"Theming","\u002Fdocs\u002Fguidelines\u002Ftheming","docs\u002F02.guidelines\u002F06.theming","Customize DocLayer’s look with CSS variables and utility classes",false,{"title":922,"path":923,"stem":924,"children":925,"description":6,"label":876,"icon":1026},"Components","\u002Fdocs\u002Fcomponents","docs\u002F03.components\u002F01.index",[926,929,930,934,939,944,949,954,960,965,970,975,980,985,991,996,1001,1006,1011,1016,1021],{"title":927,"path":923,"stem":924,"description":928,"label":876},"Components Introduction","Overview of DocLayer’s built-in Markdown content components",{"title":5,"path":859,"stem":862,"description":855,"label":140},{"title":809,"path":931,"stem":932,"description":933},"\u002Fdocs\u002Fcomponents\u002Frenderer","docs\u002F03.components\u002F03.renderer","Render reusable, shareable Markdown fragments anywhere in your content",{"title":935,"path":936,"stem":937,"description":938},"DlLink","\u002Fdocs\u002Fcomponents\u002Flink","docs\u002F03.components\u002F04.link","Create internal links resolved from the global path registry",{"title":940,"path":941,"stem":942,"description":943},"DlCode","\u002Fdocs\u002Fcomponents\u002Fcode","docs\u002F03.components\u002F05.code","Display your code snippets with syntax highlighting, copy, tabs, transformations and more",{"title":945,"path":946,"stem":947,"description":948},"DlCodeInline","\u002Fdocs\u002Fcomponents\u002Finline-code","docs\u002F03.components\u002F05.inline-code","Display inline code that stays on one line",{"title":950,"path":951,"stem":952,"description":953},"DlCallout","\u002Fdocs\u002Fcomponents\u002Fcallout","docs\u002F03.components\u002F06.callout","Display notes, warnings, and alerts as type-based callout blocks",{"title":945,"path":955,"stem":956,"description":948,"badge":957},"\u002Fdocs\u002Fcomponents\u002Fcode-inline","docs\u002F03.components\u002F06.code-inline",{"label":958,"glow":959},"new",true,{"title":961,"path":962,"stem":963,"description":964},"DlBadge","\u002Fdocs\u002Fcomponents\u002Fbadge","docs\u002F03.components\u002F07.badge","Show compact type-based status labels",{"title":966,"path":967,"stem":968,"description":969},"DlImage","\u002Fdocs\u002Fcomponents\u002Fimage","docs\u002F03.components\u002F08.image","Present optimized, responsive images with optional caption and inline styling",{"title":971,"path":972,"stem":973,"description":974},"DlStepper","\u002Fdocs\u002Fcomponents\u002Fstepper","docs\u002F03.components\u002F09.stepper","List vertical step sequences using named slots",{"title":976,"path":977,"stem":978,"description":979},"DlTooltip","\u002Fdocs\u002Fcomponents\u002Ftooltip","docs\u002F03.components\u002F10.tooltip","Annotate with contextual configurable tooltips",{"title":981,"path":982,"stem":983,"description":984},"DlPrompter","\u002Fdocs\u002Fcomponents\u002Fprompter","docs\u002F03.components\u002F11.prompter","Prompt the search index and AI Assistant with hidden, removable content inserts",{"title":986,"path":987,"stem":988,"description":989,"badge":990},"DlFormat","\u002Fdocs\u002Fcomponents\u002Fformat","docs\u002F03.components\u002F12.format","Format Markdown content into a structured HTML output",{"label":958,"glow":959},{"title":992,"path":993,"stem":994,"description":995},"DlSection","\u002Fdocs\u002Fcomponents\u002Fsection","docs\u002F03.components\u002F13.section","Wrap and demarcate content sections",{"title":997,"path":998,"stem":999,"description":1000},"DlGrid","\u002Fdocs\u002Fcomponents\u002Fgrid","docs\u002F03.components\u002F14.grid","Lay out named content items in a responsive grid",{"title":1002,"path":1003,"stem":1004,"description":1005},"DlHero","\u002Fdocs\u002Fcomponents\u002Fhero","docs\u002F03.components\u002F20.hero","Present a prominent page hero with title, lead and CTA",{"title":1007,"path":1008,"stem":1009,"description":1010},"DlHeading","\u002Fdocs\u002Fcomponents\u002Fheading","docs\u002F03.components\u002F21.heading","Divide content with section headings",{"title":1012,"path":1013,"stem":1014,"description":1015},"DlFeaturesGrid","\u002Fdocs\u002Fcomponents\u002Ffeatures-grid","docs\u002F03.components\u002F22.features-grid","Render a responsive features grid with animated and formatted tiles",{"title":1017,"path":1018,"stem":1019,"description":1020},"DlNewsletter","\u002Fdocs\u002Fcomponents\u002Fnewsletter","docs\u002F03.components\u002F23.newsletter","Collect newsletter subscriptions with a styled form",{"title":1022,"path":1023,"stem":1024,"description":1025},"DlTypeman","\u002Fdocs\u002Fcomponents\u002Ftypeman","docs\u002F03.components\u002F24.typeman","Animate rotating words with a blinking cursor effect","brick-wall",{"title":1028,"path":1029,"stem":1030,"children":1031,"description":6,"label":876,"icon":1055},"Utilities","\u002Fdocs\u002Futils","docs\u002F04.utils\u002F01.index",[1032,1035,1039,1044,1049],{"title":1033,"path":1029,"stem":1030,"description":1034,"label":876},"Utilities Introduction","Helpers, composables, macros, and types for extending DocLayer beyond Markdown",{"title":1028,"path":1036,"stem":1037,"description":1038},"\u002Fdocs\u002Futils\u002Futilities","docs\u002F04.utils\u002F02.utilities","Auto-imported helper functions for common tasks across DocLayer",{"title":1040,"path":1041,"stem":1042,"description":1043},"Composables","\u002Fdocs\u002Futils\u002Fcomposables","docs\u002F04.utils\u002F03.composables","Vue composables for collections, UI resolution, navigation, and content",{"title":1045,"path":1046,"stem":1047,"description":1048},"Macros","\u002Fdocs\u002Futils\u002Fmacros","docs\u002F04.utils\u002F04.macros","Compile-time macros for typed app config, adapters, and component UI",{"title":1050,"path":1051,"stem":1052,"description":1053,"label":1054},"Utility Types","\u002Fdocs\u002Futils\u002Ftypes","docs\u002F04.utils\u002F05.types","TypeScript utilities for safer DocLayer development","Types","tool-case",{"title":1057,"path":1058,"stem":1059,"children":1060,"description":6,"label":1064,"icon":1086},"Adapters","\u002Fdocs\u002Fadapters","docs\u002F05.adapters\u002F01.index",[1061,1065,1070,1076,1081],{"title":1062,"path":1058,"stem":1059,"description":1063,"label":1064},"Building Adapters","Build type-safe adapters to plug external services into DocLayer","Building",{"title":1066,"path":1067,"stem":1068,"description":1069},"Google","\u002Fdocs\u002Fadapters\u002Fgoogle","docs\u002F05.adapters\u002F10.google","Connect DocLayer to Google products through built-in adapters",{"title":1071,"path":1072,"stem":1073,"description":1074,"label":1071,"badge":1075},"PostHog","\u002Fdocs\u002Fadapters\u002Fposthog","docs\u002F05.adapters\u002F11.posthog","Record product analytics with the PostHog analytics adapter",{"label":958,"glow":959},{"title":1077,"path":1078,"stem":1079,"description":1080},"Resend","\u002Fdocs\u002Fadapters\u002Fresend","docs\u002F05.adapters\u002F20.resend","Send newsletter emails with the Resend newsletter adapter",{"title":1082,"path":1083,"stem":1084,"description":1085},"Substack","\u002Fdocs\u002Fadapters\u002Fsubstack","docs\u002F05.adapters\u002F21.substack","Subscribe users to Substack via DocLayer’s adapter","circle-fading-plus",{"title":1088,"path":1089,"stem":1090,"children":1091,"description":6,"label":876,"icon":1109},"Search ✨","\u002Fdocs\u002Fsearch","docs\u002F06.search\u002F01.index",[1092,1095,1100,1104],{"title":1093,"path":1089,"stem":1090,"description":1094,"label":876},"Search Module Introduction","Brief intro into built-in DocLayer’s Search Module",{"title":1096,"path":1097,"stem":1098,"description":1099},"Installation & Usage","\u002Fdocs\u002Fsearch\u002Fusage","docs\u002F06.search\u002F02.usage","Wire DocLayer’s Search Module into your app",{"title":901,"path":1101,"stem":1102,"description":1103},"\u002Fdocs\u002Fsearch\u002Fconfiguration","docs\u002F06.search\u002F03.configuration","Configure static search, indexing, and the AI assistant in DocLayer's Search Module",{"title":1105,"path":1106,"stem":1107,"description":1108},"API Reference","\u002Fdocs\u002Fsearch\u002Freference","docs\u002F06.search\u002F04.reference","API reference for DocLayer’s Search Module","scan-search",{"title":1111,"path":1112,"stem":1113,"children":1114,"description":6,"icon":1124},"Deployment","\u002Fdocs\u002Fdeployment","docs\u002F07.deployment\u002F01.index",[1115,1118],{"title":1116,"path":1112,"stem":1113,"description":1117},"Building & Preparations","Build a static DocLayer app and prepare it for hosting",{"title":1119,"path":1120,"stem":1121,"description":1122,"label":1123},"Vercel Deployment","\u002Fdocs\u002Fdeployment\u002Fvercel","docs\u002F07.deployment\u002F02.vercel","Deploy DocLayer to Vercel via UI, CLI, or CI","Vercel","server-crash",{"title":1126,"description":6,"icon":1127,"path":1128,"stem":1129,"children":1130,"page":920},"Advanced","file-terminal","\u002Fdocs\u002Fadvanced","docs\u002F09.advanced",[1131,1137,1142,1147,1152,1157,1162],{"title":1132,"path":1133,"stem":1134,"description":1135,"label":1136},"DocLayer Monorepo","\u002Fdocs\u002Fadvanced\u002Fmonorepo","docs\u002F09.advanced\u002F02.monorepo","pnpm workspaces, Turborepo, and workflows for the DocLayer monorepo","Monorepo",{"title":1138,"path":1139,"stem":1140,"description":1141},"Globals","\u002Fdocs\u002Fadvanced\u002Fglobals","docs\u002F09.advanced\u002F03.globals","DocLayer’s global instances for easy and quick access",{"title":1143,"path":1144,"stem":1145,"description":1146},"CLI","\u002Fdocs\u002Fadvanced\u002Fcli","docs\u002F09.advanced\u002F04.cli","Use Command Line Interface to extensively menage your DocLayer project",{"title":1148,"path":1149,"stem":1150,"description":1151},"Security","\u002Fdocs\u002Fadvanced\u002Fsecurity","docs\u002F09.advanced\u002F05.security","Security defaults DocLayer ships with Nuxt Security",{"title":1153,"path":1154,"stem":1155,"description":1156},"AI Tuning","\u002Fdocs\u002Fadvanced\u002Fai-tuning","docs\u002F09.advanced\u002F06.ai-tuning","Templates and rules for AGENTS.md, coding agents, and content-author AI",{"title":1158,"path":1159,"stem":1160,"description":1161},"Error Handling","\u002Fdocs\u002Fadvanced\u002Ferror-handling","docs\u002F09.advanced\u002F07.error-handling","How DocLayer validates and reports errors in authoring, build, and production",{"title":1163,"path":1164,"stem":1165,"description":1166},"Troubleshooting","\u002Fdocs\u002Fadvanced\u002Ftroubleshooting","docs\u002F09.advanced\u002F08.troubleshooting","Known DocLayer issues and quick fixes",{"title":1168,"description":6,"icon":1169,"path":1170,"stem":1171,"children":1172,"page":920},"Project","shield-ellipsis","\u002Fdocs\u002Fproject","docs\u002F10.project",[1173,1178,1183],{"title":1174,"path":1175,"stem":1176,"description":1177},"Contribution","\u002Fdocs\u002Fproject\u002Fcontribution","docs\u002F10.project\u002F01.contribution","How to report issues and when contributions are welcome",{"title":1179,"path":1180,"stem":1181,"description":1182},"Principles","\u002Fdocs\u002Fproject\u002Fethos","docs\u002F10.project\u002F02.ethos","Who we are, what we care about, and how we treat each other",{"title":1184,"path":1185,"stem":1186,"description":1187},"Support","\u002Fdocs\u002Fproject\u002Fsupport","docs\u002F10.project\u002F03.support","Join the Early Supporter Program and help fund DocLayer’s development",{"title":1105,"description":6,"icon":1189,"path":1190,"stem":1191,"children":1192,"page":920},"file-type","\u002Fdocs\u002Freference","docs\u002F99.reference",[1193,1198,1203],{"title":1194,"path":1195,"stem":1196,"description":1197},"App Config","\u002Fdocs\u002Freference\u002Fapp-config","docs\u002F99.reference\u002F01.app-config","API Reference for DocLayer’s AppConfig",{"title":1199,"path":1200,"stem":1201,"description":1202},"Module Options","\u002Fdocs\u002Freference\u002Fmodule-options","docs\u002F99.reference\u002F01.module-options","API Reference for DocLayer’s ModuleOptions",{"title":1204,"path":1205,"stem":1206,"description":1207},"Content Schema","\u002Fdocs\u002Freference\u002Fcontent-schema","docs\u002F99.reference\u002F02.content-schema","API Reference for DocLayer’s Content Schema",[1209,1231,1252,1273,1302,1318,1334,1361,1383,1427,1448,1460,1476,1492,1504,1565,1583,1609,1633,1663,1707,1735],{"id":1210,"data":6,"extension":856,"meta":1211,"stem":1229,"__hash__":1230},"shared\u002Fcode-type-header-logo-path.md",{"body":1212},{"type":8,"value":1213,"toc":1227},[1214],[113,1215,1216,1222],{},[116,1217,1220],{"className":1218,"code":1219,"language":737,"meta":122},[735],"type DocLayerConfig = {\n  \u002F\u002F rest of the AppConfig interface\n  headerLogoPath:\n    | string\n    | {\n        light: string;\n        dark: string;\n        fallback?: string;\n      };\n};\n\"cref:k9e5ul\"\n",[97,1221,1219],{"__ignoreMap":122},[126,1223,1224],{"v-slot:ui":122},[11,1225,1226],{},"{\"actions\": \"hidden\", \"base\": \"mt-0!\"}",{"title":122,"searchDepth":845,"depth":845,"links":1228},[],"code-type-header-logo-path","551Sg_POiUffLU346shstXNFdKuMuK4ToyOLqIJp1Ws",{"id":1232,"data":6,"extension":856,"meta":1233,"stem":1250,"__hash__":1251},"shared\u002Fcode-type-module-options-root-prep.md",{"body":1234},{"type":8,"value":1235,"toc":1248},[1236],[113,1237,1238,1244],{},[116,1239,1242],{"className":1240,"code":1241,"language":737,"meta":122},[735],"type ModuleOptions = {\n  rootPrep:\n    | {\n        components: boolean;\n        configs: boolean;\n        public: boolean;\n      }\n    | boolean;\n};\n\"cref:bqm9nh\"\n",[97,1243,1241],{"__ignoreMap":122},[126,1245,1246],{"v-slot:ui":122},[11,1247,1226],{},{"title":122,"searchDepth":845,"depth":845,"links":1249},[],"code-type-module-options-root-prep","CDd6YiejS7_3Pl2ETS054y-cran1P92f4jEUZTnpnOI",{"id":1253,"data":6,"extension":856,"meta":1254,"stem":1271,"__hash__":1272},"shared\u002Fcode-type-search-debug-options.md",{"body":1255},{"type":8,"value":1256,"toc":1269},[1257],[113,1258,1259,1265],{},[116,1260,1263],{"className":1261,"code":1262,"language":737,"meta":122},[735],"type DebugOptions =\n  | {\n      mint: boolean;\n      parser: boolean;\n      assistant: boolean;\n      compression: boolean;\n    }\n  | boolean;\n\"cref:4kwyr2\"\n",[97,1264,1262],{"__ignoreMap":122},[126,1266,1267],{"v-slot:ui":122},[11,1268,1226],{},{"title":122,"searchDepth":845,"depth":845,"links":1270},[],"code-type-search-debug-options","9sgMqYFmn561p6df7FEuf-1-dyKAqrO_HYGdARynLlA",{"id":1274,"data":6,"extension":856,"meta":1275,"stem":1300,"__hash__":1301},"shared\u002Finline-read-more-about.md",{"body":1276},{"type":8,"value":1277,"toc":1298},[1278],[11,1279,1282,1283,1287,1288],{"className":1280},[1281],"mt-0!","More about ",[1284,1285],"dl-format",{":content":1286},"about",", ",[22,1289,1290,1294,1295],{"label":756},[1291,1292],"binding",{"value":1293},"$doc.link","|",[1291,1296],{"value":1297},"$doc.hash",{"title":122,"searchDepth":845,"depth":845,"links":1299},[],"inline-read-more-about","O5VeK2Uv84witk_mAupYbHJxwXAmNoSKDgtmvyvLQwU",{"id":1303,"data":6,"extension":856,"meta":1304,"stem":1316,"__hash__":1317},"shared\u002Fsection-exported-types.md",{"body":1305},{"type":8,"value":1306,"toc":1314},[1307],[11,1308,1309,1310,1313],{},"You can refer to the exported types, which are available for use throughout your application. All of them can be accessed from the ",[97,1311,1312],{},"@vuehouse\u002Fdl\u002Ftypes"," entrypoint.",{"title":122,"searchDepth":845,"depth":845,"links":1315},[],"section-exported-types","SyCNSGhT7VGICRHuO3fNO2QfyQUf7s10wVMGQyTfBFk",{"id":1319,"data":6,"extension":856,"meta":1320,"stem":1332,"__hash__":1333},"shared\u002Fsection-highlighter-marker-disclaimer.md",{"body":1321},{"type":8,"value":1322,"toc":1330},[1323],[54,1324,1325],{},[11,1326,155,1327,1329],{},[97,1328,616],{}," character has been escaped manually to demonstrate the code usage, remove the backslash when using it.",{"title":122,"searchDepth":845,"depth":845,"links":1331},[],"section-highlighter-marker-disclaimer","DvlAILaQ9PE_c-B8f_1AYbrRaXRnOq9Ldr_Uc8qwkqE",{"id":1335,"data":6,"extension":856,"meta":1336,"stem":1359,"__hash__":1360},"shared\u002Fsection-newly-added.md",{"body":1337},{"type":8,"value":1338,"toc":1357},[1339],[71,1340,1341],{"title":151},[11,1342,1343,1348,1349,1356],{},[1344,1345,958],"dl-badge",{":iui":1346,"glow":1347,"size":856},"{ \"base\": \"mr-1 align-text-top\" }","true"," Available from the ",[97,1350,1353],{"className":1351},[1352],"whitespace-nowrap",[1291,1354],{"value":1355},"$doc.version"," release.",{"title":122,"searchDepth":845,"depth":845,"links":1358},[],"section-newly-added","ALhVdWjkGXgjt6I9nIikz7fUkwkGy62V3bicM903qW8",{"id":1362,"data":6,"extension":856,"meta":1363,"stem":1381,"__hash__":1382},"shared\u002Fsection-optional-tool.md",{"body":1364},{"type":8,"value":1365,"toc":1379},[1366],[71,1367,1368],{"title":151,"type":74},[11,1369,1370,1371,1374,1375,52],{},"This tool is not a part of the DocLayer module. Its usage is opinionated and ",[15,1372,1373],{},"optionally included"," in the ",[22,1376,1378],{"label":1377},"Boilerplate application","$dl-boilerplate",{"title":122,"searchDepth":845,"depth":845,"links":1380},[],"section-optional-tool","OWRAq0rKvbIllQHS-mJRS8L2qkNiiQ8RMiFBIBiZmnY",{"id":1384,"data":6,"extension":856,"meta":1385,"stem":1425,"__hash__":1426},"shared\u002Fsection-props-extending.md",{"body":1386},{"type":8,"value":1387,"toc":1423},[1388],[71,1389,1391,1402],{"title":1390,"type":74},"Why to use built-in property extending?",[11,1392,1393,1394,1401],{},"You might ask ",[15,1395,1396,1397],{},"why this approach is better than simply ",[22,1398,758],{"hash":1399,"label":1400},"defining-dynamic-properties","passing regular dynamic properties"," to your content components?",[174,1403,1404,1410,1417,1420],{},[177,1405,1406,1407,52],{},"First, it’s not limited to local data - you can provide data from parent components as well as from the global registry, managed by the ",[22,1408,721],{"hash":720,"label":1409},"`dl.inDocData` object",[177,1411,1412,1413,1416],{},"Second, dynamic property binding with the ",[97,1414,1415],{},"$doc"," handler isn’t possible when using regular dynamic props, since those values are resolved as static data, which can make data binding inconsistent.",[177,1418,1419],{},"Third, you can mix static and dynamic content for the same property.",[177,1421,1422],{},"Finally, with this approach, data binding happens at the component level, is cached, and reused for future renders, rather than being resolved each time during Markdown parsing.",{"title":122,"searchDepth":845,"depth":845,"links":1424},[],"section-props-extending","_KvOHw4F9cNT3FPfJPu3rKhnly5pt4adBb6EQXsJM8s",{"id":1428,"data":6,"extension":856,"meta":1429,"stem":1446,"__hash__":1447},"shared\u002Fsection-props-intro.md",{"body":1430},{"type":8,"value":1431,"toc":1444},[1432],[11,1433,1434,1435,1440,1441,52],{},"Here are the properties you can use with the ",[97,1436,1437],{},[1291,1438],{"value":1439},"$doc.componentName"," component. Each property should be set on an individual component instance; they do not affect the global configuration. More about defining properties in MDC components ",[22,1442,758],{"hash":1443,"label":756},"defining-properties",{"title":122,"searchDepth":845,"depth":845,"links":1445},[],"section-props-intro","SKoDIW1kVb4amM1MgbWMvvgRr9IWPabKr58_xl1Q-GM",{"id":1449,"data":6,"extension":856,"meta":1450,"stem":1458,"__hash__":1459},"shared\u002Fsection-props-iui-description.md",{"body":1451},{"type":8,"value":1452,"toc":1456},[1453],[11,1454,1455],{},"Special property dedicated to inline components, can be used to add TW classes for certain component markup elements.",{"title":122,"searchDepth":845,"depth":845,"links":1457},[],"section-props-iui-description","Se96jxhroK3WLRE4HXYqDeoYv1lpUd8qv4vZ8us54sI",{"id":1461,"data":6,"extension":856,"meta":1462,"stem":1474,"__hash__":1475},"shared\u002Fsection-props-ui-default.md",{"body":1463},{"type":8,"value":1464,"toc":1472},[1465],[11,1466,1468],{"style":1467},"white-space: nowrap;",[135,1469,1471],{"href":1470},"#styling","see below",{"title":122,"searchDepth":845,"depth":845,"links":1473},[],"section-props-ui-default","5mkrOeoYp1BToIddCkwyzzTWeOQvj1gDVRYHJJl7kow",{"id":1477,"data":6,"extension":856,"meta":1478,"stem":1490,"__hash__":1491},"shared\u002Fsection-props-ui-description.md",{"body":1479},{"type":8,"value":1480,"toc":1488},[1481],[11,1482,1484,1485,1487],{"style":1483},"min-width: 16rem;","The component ",[97,1486,287],{}," object. Defines the Tailwind classes for the component's HTML markup elements.",{"title":122,"searchDepth":845,"depth":845,"links":1489},[],"section-props-ui-description","xXl6RjZ54x2VpJv6H1mJ7OSCTSOfMTtRD1_VyiC0tjI",{"id":1493,"data":6,"extension":856,"meta":1494,"stem":1502,"__hash__":1503},"shared\u002Fsection-props-ui-type.md",{"body":1495},{"type":8,"value":1496,"toc":1500},[1497],[97,1498,1499],{"style":1467},"() => UI",{"title":122,"searchDepth":845,"depth":845,"links":1501},[],"section-props-ui-type","AuxEvFbnpnbFrEjJrYiNJVZsYmI8RkEnH9RjkkuoaSQ",{"id":1505,"data":6,"extension":856,"meta":1506,"stem":1563,"__hash__":1564},"shared\u002Fsection-remote-model-callout.md",{"body":1507},{"type":8,"value":1508,"toc":1561},[1509],[71,1510,1512,1518,1528,1531,1540,1550],{"title":1511},"DocLayer's Remote Model",[11,1513,1514,1517],{},[15,1515,1516],{},"DocLayer offers a prebuilt remote API for the AI Assistant",", providing advanced features like context focusing, deterministic intelligent caching, and optimized code extraction to deliver precise, high-quality answers (almost) every time.",[11,1519,1520,52],{},[15,1521,1522,1523,1527],{},"Our carefully fine-tuned model is available through the ",[22,1524,1526],{"label":1525},"🫠 Early Supporter Program","$docs-project-support"," - help us to build the best product possible securing the most advanced features for the best price",[11,1529,1530],{},"Here’s how you can configure it:",[113,1532,1534],{"tabs":1533},"nuxt.config.ts",[116,1535,1538],{"className":1536,"code":1537,"language":737,"meta":122},[735],"export default defineNuxtConfig({\n  \u002F\u002F the rest of the nuxt.config.ts\n  modules: ['@vuehouse\u002Fdl-search'],\n  dlSearch: {\n    assistant: {\n      model: {\n        type: 'dl',\n        config: {\n          endpoint: 'https:\u002F\u002Fvue.house\u002Fapi',\n          token: process.env.DL_API_TOKEN,\n        },\n      },\n    },\n  },\n});\n\"cref:96cag8\"\n",[97,1539,1537],{"__ignoreMap":122},[11,1541,1542,1543,1546,1547,52],{},"To try our API please ",[22,1544,1545],{},"$mailto-vue-house",". ",[15,1548,1549],{},"It's free",[11,1551,1552,1553,158,1556,52],{},"Remote ",[15,1554,1555],{},"API operates with a dedicated",[22,1557,1560],{"label":1558,"hash":1559},"DocLayer AI Kit","ai-kit","$docs-search-usage",{"title":122,"searchDepth":845,"depth":845,"links":1562},[],"section-remote-model-callout","C3AapTL9Uu5tqauRWl5GqZc8aOld3-yEvscN9Dwfp2M",{"id":1566,"data":6,"extension":856,"meta":1567,"stem":1581,"__hash__":1582},"shared\u002Fsection-slots-ui-description.md",{"body":1568},{"type":8,"value":1569,"toc":1579},[1570],[11,1571,1572,1573,1575,1576,52],{},"Dedicated slot for defining the component’s ",[97,1574,287],{}," object. More about styling MDC components ",[22,1577,1578],{"label":756},"$docs-components-building",{"title":122,"searchDepth":845,"depth":845,"links":1580},[],"section-slots-ui-description","HFR6PT0KFzSBW9WnqIk5KdPqHjGTTl3za3mklYIIYUY",{"id":1584,"data":6,"extension":856,"meta":1585,"stem":1607,"__hash__":1608},"shared\u002Fsection-styling-css-classes-intro.md",{"body":1586},{"type":8,"value":1587,"toc":1605},[1588],[11,1589,1590,1591,1595,1596,1600,1601,1604],{},"Below are the CSS utility classes used by the ",[97,1592,1593],{},[1291,1594],{"value":1439}," component. They make use of the ",[135,1597,1599],{"href":1598},"#css-variables","CSS variables"," described above and ",[135,1602,1603],{"href":1470},"define the default styling"," for the component's markup elements.",{"title":122,"searchDepth":845,"depth":845,"links":1606},[],"section-styling-css-classes-intro","VRtlxQ59m9iNVrWHp9r1OAy2lkklqQPtKbRIkwVCY6A",{"id":1610,"data":6,"extension":856,"meta":1611,"stem":1631,"__hash__":1632},"shared\u002Fsection-styling-css-variables-intro.md",{"body":1612},{"type":8,"value":1613,"toc":1629},[1614],[11,1615,1616,1617,368,1620,1624,1625,52],{},"Here is a set of CSS variables you can ",[15,1618,1619],{},"use to customize the appearance",[97,1621,1622],{},[1291,1623],{"value":1439}," component globally. More about theming and styling with CSS variables, ",[22,1626,1628],{"hash":1627,"label":756},"css-variables","$docs-guidelines-theming",{"title":122,"searchDepth":845,"depth":845,"links":1630},[],"section-styling-css-variables-intro","Vk6yVXoMwLNtqisCZhk9m2F3-wHKjiujWtBBZbTJcD4",{"id":1634,"data":6,"extension":856,"meta":1635,"stem":1661,"__hash__":1662},"shared\u002Fsection-styling-intro.md",{"body":1636},{"type":8,"value":1637,"toc":1659},[1638,1650],[71,1639,1641],{"title":1640,"type":74},"Styling from Markdown",[11,1642,1643,1644,1647,1648,52],{},"Every DocLayer component ",[15,1645,1646],{},"can be styled directly within your Markdown file"," using dedicated slot\u002Fproperty configuration. This allows you to customize the appearance of the component's markup elements without modifying global styles. More about components styling ",[22,1649,1578],{"hash":469,"label":756},[11,1651,1652,1653],{},"Below you'll find the default set of Tailwind classes for the component's dedicated markup elements. ",[1284,1654,1655],{},[1291,1656],{"defaultValue":1657,"value":1658},"undefined","$doc.extend",{"title":122,"searchDepth":845,"depth":845,"links":1660},[],"section-styling-intro","8V_zEj7QXax6dzKp918ZNy97d9u4qk6TaE40wI5JWEs",{"id":1664,"data":6,"extension":856,"meta":1665,"stem":1705,"__hash__":1706},"shared\u002Fsection-utility-exports-disclaimer.md",{"body":1666},{"type":8,"value":1667,"toc":1703},[1668],[71,1669,1670,1677,1696],{"title":151,"type":74},[11,1671,1672,1673,1676],{},"This utility is ",[15,1674,1675],{},"exported from the module"," package.",[113,1678,1681,1687],{"dynamic":1679,"tabs":1680},"utilityName","file.ts",[116,1682,1685],{"className":1683,"code":1684,"language":737,"meta":122},[735],"import { :dl-dynamic: } from '@vuehouse\u002Fdl\u002Fexports';\n\"cref:zseli7\"\n",[97,1686,1684],{"__ignoreMap":122},[126,1688,1689],{"v-slot:props":122},[11,1690,1691,1692,1695],{},"{\"dynamic\": \"",[1291,1693],{"value":1694},"$doc.utilityName","\" }",[11,1697,1698,1699,1702],{},"You can use it this way ",[15,1700,1701],{},"when the global context is not available"," and utility can't be loaded automatically by Nuxt.",{"title":122,"searchDepth":845,"depth":845,"links":1704},[],"section-utility-exports-disclaimer","FXCXHiiD49oOkbSwsKFpp4m0gsXkZdnUwCwWnVjwucI",{"id":1708,"data":6,"extension":856,"meta":1709,"stem":1733,"__hash__":1734},"shared\u002Ftooltip-app-config-path.md",{"body":1710},{"type":8,"value":1711,"toc":1731},[1712],[1713,1714,1717],"dl-tooltip",{"label":1715,"tooltip":1716},"`app.config.ts`","In-app file path: app\u002Fapp.config.ts",[126,1718,1719],{"v-slot:props":122},[11,1720,1721,1722,1726,1727,1730],{},"{\"tooltip\": \"In-app file path: ",[1291,1723],{"defaultValue":1724,"value":1725},"app\u002Fapp.config.ts","$doc.tooltip","\", \"label\": \"",[1291,1728],{"defaultValue":1715,"value":1729},"$doc.label","\"}",{"title":122,"searchDepth":845,"depth":845,"links":1732},[],"tooltip-app-config-path","WVDQKyALt7paYD6Tr7K10fmQ27d2XjzO_oxDKHCgSdc",{"id":1736,"data":6,"extension":856,"meta":1737,"stem":1746,"__hash__":1747},"shared\u002Ftooltip-rag.md",{"body":1738},{"type":8,"value":1739,"toc":1744},[1740],[1713,1741],{"label":1742,"lock-width":1347,"tooltip":1743},"**RAG**","RAG stands for Retrieval-Augmented Generation. It is an AI solution that enhances the accuracy and reliability of Large Language Models by allowing them to reference data outside their original training set when generating answers. In most cases, this data is provided locally.",{"title":122,"searchDepth":845,"depth":845,"links":1745},[],"tooltip-rag","fDKuZzfT8d6JNox0uI1P0_ktG8kYWiz7WGsWWo7gTGs",[1749,1751,1752,1753],{"title":922,"path":1750,"stem":924,"children":-1,"description":6,"label":876,"icon":1026},"\u002Fdocs\u002Fcomponents\u002F.navigation",{"title":927,"path":923,"stem":924,"description":928,"label":876,"children":-1},{"title":809,"path":931,"stem":932,"description":933,"children":-1},{"title":935,"path":936,"stem":937,"description":938,"children":-1},1795796063782]