What is the `components/` directory auto-import feature?

Answer

Nuxt.js automatically imports Vue components from the components/ directory, meaning you can use any component in your templates without writing import statements. The component name is derived from its file path: components/ui/Button.vue becomes <UiButton />. Nuxt also supports lazy loading of components by prefixing with Lazy: <LazyModal /> is only loaded when it appears in the DOM. This auto-import system reduces boilerplate significantly and works with nested directories, following a consistent naming convention based on folder structure.