From db26a352c1e319b3584b198b4ea48605692f8e4e Mon Sep 17 00:00:00 2001 From: Adam DeHaven <2229946+adamdehaven@users.noreply.github.com> Date: Tue, 5 Mar 2024 15:16:06 -0500 Subject: [PATCH] docs: document `fallback` prop for `` (#26091) --- docs/3.api/1.components/3.nuxt-layout.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/3.api/1.components/3.nuxt-layout.md b/docs/3.api/1.components/3.nuxt-layout.md index cc8bf04191..3b5a462a00 100644 --- a/docs/3.api/1.components/3.nuxt-layout.md +++ b/docs/3.api/1.components/3.nuxt-layout.md @@ -55,6 +55,10 @@ Please note the layout name is normalized to kebab-case, so if your layout file Read more about dynamic layouts. :: +- `fallback`: If an invalid layout is passed to the `name` prop, no layout will be rendered. Specify a `fallback` layout to be rendered in this scenario. It **must** match the name of the corresponding layout file in the [`layouts/`](/docs/guide/directory-structure/layouts) directory. + - **type**: `string` + - **default**: `null` + ## Additional Props `NuxtLayout` also accepts any additional props that you may need to pass to the layout. These custom props are then made accessible as attributes.