diff --git a/docs/2.guide/2.directory-structure/1.components.md b/docs/2.guide/2.directory-structure/1.components.md index 72e024e53..2e99d1d1d 100644 --- a/docs/2.guide/2.directory-structure/1.components.md +++ b/docs/2.guide/2.directory-structure/1.components.md @@ -139,84 +139,84 @@ export default defineNuxtConfig({ }) ``` -Nuxt has reserved component prefixes that will handle this delayed hydration for you, that extend dynamic imports. By prefixing your component with `LazyVisible`, Nuxt will automatically handle your component and delay its hydration until it will be on screen. +Nuxt has reserved component properties that will handle this delayed hydration for you, that extend dynamic imports. By using the `hydrate:visible` prop, Nuxt will automatically handle your component and delay its hydration until it will be on screen. ```vue [pages/index.vue] ``` -If you need the component to load as soon as possible, but not block the critical rendering path, you can use the `LazyIdle` prefix, which would handle your component's hydration whenever the browser goes idle. +If you need the component to load as soon as possible, but not block the critical rendering path, you can use the `hdrate:idle` prop, which would handle your component's hydration whenever the browser goes idle. ```vue [pages/index.vue] ``` -If you would like the component to load after certain events occur, like a click or a mouse over, you can use the `LazyEvent` prefix, which would only trigger the hydration when those events occur. +If you would like the component to load after certain events occur, like a click or a mouse over, you can use the `hydrate:event` prop, which would only trigger the hydration when those events occur. ```vue [pages/index.vue] ``` -If you would like to load the component when the window matches a media query, you can use the `LazyMedia` prefix: +If you would like to load the component when the window matches a media query, you can use the `hydrate:media` prop: ```vue [pages/index.vue] ``` -If you would like to never hydrate a component, use the `LazyNever` prefix: +If you would like to never hydrate a component, use the `hydrate:never` prop: ```vue [pages/index.vue] ``` -If you would like to hydrate a component after a certain amount of time, use the `LazyTime` prefix: +If you would like to hydrate a component after a certain amount of time, use the `hydrate:time` prop: ```vue [pages/index.vue] ``` -If you would like to hydrate a component once a promise is fulfilled, use the `LazyPromise` prefix: +If you would like to hydrate a component once a promise is fulfilled, use the `hydrate:promise` prefix: ```vue [pages/index.vue] ``` Nuxt's delayed hydration system is highly flexible, allowing each developer to build upon it and implement their own hydration strategy. -If you have highly specific hydration triggers that aren't covered by the default strategies, or you want to have conditional hydration, you can use the general purpose `LazyIf` prefix: +If you have highly specific hydration triggers that aren't covered by the default strategies, or you want to have conditional hydration, you can use the general purpose `hydrate:if` prop: ```vue [pages/index.vue]