Error Section
error.tsx / global-error.tsx, and dedicated maintenance pages.Cyberpunk Terminal Section
errorCode"500"- displays the error status code or exception type.
errorId"ERR_0x9481FA"- unique incident trace ID for diagnostic debugging.
Installation
New project? Follow the installation guide to set up Tailwind CSS, shadcn, the cn helper and lucide-react, register the @algorize-ui registry once, then copy your styles from the Themes page.
Install Error Section
components/ is written into your project. Copy any snippet from a Usage tab above and it runs.
Install dependencies
Nothing beyond the shared setup — Error Section needs only the cn helper and lucide-react, which the installation guide already put in place.
Features
ErrorSection component:Cyberpunk Diagnostic Enclosure
Full-width futuristic telemetry console with macOS window indicators, pulsating status badge, and glowing holographic crash icon.
Adaptive Light & Dark Modes
Clean high-contrast daytime mode alongside an immersive deep obsidian cyberpunk nocturnal theme with red spotlights.
Live Stacktrace Console & Copy
Scroll-safe diagnostic trace terminal with one-click clipboard copying for quick bug triage and escalation.
Mobile Touch-Friendly Layout
Responsive action buttons and fluid typography that automatically adapt from compact 320px smartphones to widescreen monitors.
Props Reference
| Prop | Type | Default | Description |
|---|---|---|---|
errorCode | string | "500" | Primary error code or HTTP status string displayed on the status telemetry badge. |
title | string | "SYSTEM RUNTIME EXCEPTION" | Primary uppercase diagnostic heading. |
description | string | "Critical process halted..." | User-friendly explanatory message explaining why execution was suspended. |
errorId | string | "ERR_0x9481FA" | Unique incident trace or digest identifier for diagnostics. |
errorDetails | string | sample stacktrace | Raw stacktrace or diagnostic technical dump rendered inside the expandable code console. |
onRetry | () => void | undefined | Callback invoked when user clicks the "Reboot System" action button. |
onHome | () => void | undefined | Callback invoked when user clicks the "Return Home" action button. |
onSupport | () => void | undefined | Callback invoked when user clicks the "Contact Escalation Team" link. |
className | string | "" | Custom Tailwind CSS class overrides for the container section. |