Skip to content

Error Boundary

Vue error boundary with fallback UI and retry event.

Usage

vue
<script setup>
import { ArchErrorBoundary } from "@archora/ui";
</script>

<template>
  <ArchErrorBoundary fallback-title="Panel failed" @retry="reload">
    <RiskyPanel />
  </ArchErrorBoundary>
</template>

Live sandbox

Error Boundary can be tested directly on this page.

interactive
Panel rendered without errors.
<ErrorBoundary />

Props

PropTypeDefaultDescription
fallbackTitlestring"Something went wrong"Fallback state title.
retryLabelstring"Retry"Retry button text.

Events

EventPayloadDescription
retry-Component event.

Slots

SlotPropsDescription
default-Protected content.