Dev Design Library

Mode Error Boundary

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 failin.

Mode Error Boundary preview
Library
LocalMode
Framework
React
Type
component
License
MIT
Install
npx shadcn add @localmode/ui/ui/results/mode-error-boundary
Files
  • apps/ui/registry/localmode/results/mode-error-boundary/mode-error-boundary.tsx
Source
https://github.com/LocalMode-AI/LocalMode

Categories

More from LocalMode