Mode Error Boundary
- from @localmode
- by LocalMode
A React error boundary that isolates a render failure in its subtree: it catches the error, renders a compact recoverable role=alert notice with the message and a Reset button that clears the error and re-renders the children, so one failing surface cannot blank the whole page. A structural copy-owned utility with local prop shapes.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @localmode/ui/results/mode-error-boundaryLive preview
No live preview has been built for this component yet.
Registry dependencies1
- @localmode/ui/lib/utils
Packages0
No npm packages are installed with it.
