From b9d83b3cd1b35c05d63a7f90462050170a8961fd Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 21 Oct 2022 10:26:59 +0100 Subject: [PATCH] docs: add missing `app` key for transitions (#8385) --- .../1.getting-started/5.transitions.md | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/docs/content/1.getting-started/5.transitions.md b/docs/content/1.getting-started/5.transitions.md index e2a46d402f..7f3ad702ff 100644 --- a/docs/content/1.getting-started/5.transitions.md +++ b/docs/content/1.getting-started/5.transitions.md @@ -212,14 +212,16 @@ Both `pageTransition` and `layoutTransition` keys accept [`TransitionProps`](htt ```ts [nuxt.config.ts] export default defineNuxtConfig({ - pageTransition: { - name: 'fade', - mode: 'out-in' // default - }, - layoutTransition: { - name: 'slide', - mode: 'out-in' // default - } + app: { + pageTransition: { + name: 'fade', + mode: 'out-in' // default + }, + layoutTransition: { + name: 'slide', + mode: 'out-in' // default + } + } }) ``` @@ -257,8 +259,10 @@ Or globally in the `nuxt.config`: ```ts [nuxt.config.ts] defineNuxtConfig({ - pageTransition: false, - layoutTransition: false + app: { + pageTransition: false, + layoutTransition: false + } }) ```