Utility
Terminal
█
error-boundary-demo █
Loading preview... █
█
█
█
█
█
█
█
█
█
█
█
█
█
█
█Installation
$ pnpm dlx shadcn@latest add @termcn/opentui/error-boundary
Usage
import { ErrorBoundary } from "@/components/ui/error-boundary";<ErrorBoundary title="Application Error">
<YourAppContent />
</ErrorBoundary>API Reference
ErrorBoundary
| Prop | Type | Default |
|---|---|---|
children | ReactNode | required |
fallback | ReactNode | - |
onError | (error: Error, info: { componentStack: string }) => void | - |
title | string | "Error" |