From 6205fbe316c6e41dc1bc9bee9cdfa44a64ad96bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Ollivier?= Date: Thu, 7 Apr 2022 15:26:36 +0200 Subject: [PATCH] docs(api): specify nuxt-error-boundary events and slots (#4159) --- .../2.components/5.nuxt-error-boundary.md | 32 +++++++++++++++++-- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/docs/content/3.api/2.components/5.nuxt-error-boundary.md b/docs/content/3.api/2.components/5.nuxt-error-boundary.md index 0d55456b68..54f416474c 100644 --- a/docs/content/3.api/2.components/5.nuxt-error-boundary.md +++ b/docs/content/3.api/2.components/5.nuxt-error-boundary.md @@ -1,7 +1,33 @@ # `` +Nuxt provides the `` component to handle client-side errors happening in its default slot, using Vue's [`onErrorCaptured` hook.](https://vuejs.org/api/composition-api-lifecycle.html#onerrorcaptured) + +## Events + +- **@error**: Event emitted when the default slot of the component throws an error. + + ```vue + + ``` + +## Slots + +- **#error**: Specify a fallback content to display in case of error. + + ```vue + + ``` + ::ReadMore{link="/guide/features/error-handling"} :: - -::NeedContribution -::