Errors · component · 14K
"Sorry, a system error occurred." as a React error boundary: bomb alert with ID = n (stable per error type), Restart and Resume, a details disclosure with the component stack, inline or covering the screen, reset keys and focus restore.
Errors from event handlers and promises are not caught by React; pass them to useThrowToBoundary. For a Next.js app/error.tsx, render SystemErrorAlert variant="screen" with systemErrorId(error) and call retry on Restart (see the comment at the top of the file).
pnpm dlx shadcn@latest add @s7ui/system-errorThis example also uses @s7ui/button @s7ui/use-throw-to-boundary @s7ui/window.
This window is wrapped in an error boundary.