Utility
Terminal
Installation
$ pnpm dlx shadcn@latest add @termcn/ink/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" |
Notes
Accessibility
termcn exposes the following behavior through Ink's terminal accessibility APIs. This is not a browser ARIA or general WCAG-conformance claim.
- Screen reader: Ink labels and semantic state expose the component without relying on visual styling alone.