Skip to content

Commit

Permalink
docs: document fallback prop for <NuxtLayout> (#26091)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdehaven committed Mar 5, 2024
1 parent 84749e0 commit db26a35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/3.api/1.components/3.nuxt-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit db26a35

Please sign in to comment.