diff --git a/docs/content/1.getting-started/2.installation/2.vue.md b/docs/content/1.getting-started/2.installation/2.vue.md index 3d3c45ac..cdab65af 100644 --- a/docs/content/1.getting-started/2.installation/2.vue.md +++ b/docs/content/1.getting-started/2.installation/2.vue.md @@ -78,6 +78,22 @@ components.d.ts :: +::tip +Internally, Nuxt UI relies on custom alias to resolve the theme types. If you're using TypeScript, you should add an alias to your `tsconfig` to enable auto-completion in your `vite.config.ts`. + +```json [tsconfig.node.json] +{ + "compilerOptions": { + "paths": { + "#build/ui": [ + "./node_modules/@nuxt/ui/.nuxt/ui" + ] + } + } +} +``` +:: + #### Use the Nuxt UI Vue plugin in your `main.ts` ```ts [main.ts]{3,14}