diff --git a/docs/3.api/2.composables/use-preview-mode.md b/docs/3.api/2.composables/use-preview-mode.md index 360350f19e..e87e525327 100644 --- a/docs/3.api/2.composables/use-preview-mode.md +++ b/docs/3.api/2.composables/use-preview-mode.md @@ -5,6 +5,8 @@ description: "Use usePreviewMode to check and control preview mode in Nuxt" # `usePreviewMode` +Preview mode allows you to see how your changes would be displayed on a live site without revealing them to users. + You can use the built-in `usePreviewMode` composable to access and control preview state in Nuxt. If the composable detects preview mode it will automatically force any updates necessary for [`useAsyncData`](/docs/api/composables/use-async-data) and [`useFetch`](/docs/api/composables/use-fetch) to rerender preview content. ```js @@ -47,15 +49,11 @@ The `getState` function will append returned values to current state, so be care ## Example +The example below creates a page where part of a content is rendered only in preview mode. + ```vue [pages/some-page.vue]