L
LocalMode

Mode Error Boundary · 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.

npx shadcn@latest add https://localmode.ai/r/ui/results/mode-error-boundary.json
Preview Mode Error Boundary on LocalMode's site (opens in a new tab)
Loading the source for ui/results/mode-error-boundary…

ui/results/mode-error-boundary