diff --git a/docs/2.guide/2.directory-structure/1.components.md b/docs/2.guide/2.directory-structure/1.components.md index fbd03b63b4..f4cf6c7e97 100644 --- a/docs/2.guide/2.directory-structure/1.components.md +++ b/docs/2.guide/2.directory-structure/1.components.md @@ -166,6 +166,10 @@ export default defineNuxtConfig({ }) ``` +::note +Any nested directories need to be added first as they are scanned in order. +:: + ## npm Packages If you want to auto-import components from an npm package, you can use [`addComponent`](/docs/api/kit/components#addcomponent) in a [local module](/docs/guide/directory-structure/modules) to register them. @@ -198,10 +202,6 @@ export default defineNuxtModule({ :: -::note -Any nested directories need to be added first as they are scanned in order. -:: - ## Component Extensions By default, any file with an extension specified in the [extensions key of `nuxt.config.ts`](/docs/api/nuxt-config#extensions) is treated as a component.