Avara UI

Error Section

A full-page, responsive Cyberpunk Diagnostic Terminal section designed for root application error boundaries, Next.js error.tsx / global-error.tsx, and dedicated maintenance pages.
Features a full-width terminal enclosure, diagnostic monitors, adaptive light & dark mode styling, live stacktrace inspector, and one-click incident copying.

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

npx shadcn@latest add @algorize-ui/error-section

components/custom/blocks/ErrorSectionBlock.tsx 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

Discover the key capabilities of the 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

PropTypeDefaultDescription
errorCodestring"500"Primary error code or HTTP status string displayed on the status telemetry badge.
titlestring"SYSTEM RUNTIME EXCEPTION"Primary uppercase diagnostic heading.
descriptionstring"Critical process halted..."User-friendly explanatory message explaining why execution was suspended.
errorIdstring"ERR_0x9481FA"Unique incident trace or digest identifier for diagnostics.
errorDetailsstringsample stacktraceRaw stacktrace or diagnostic technical dump rendered inside the expandable code console.
onRetry() => voidundefinedCallback invoked when user clicks the "Reboot System" action button.
onHome() => voidundefinedCallback invoked when user clicks the "Return Home" action button.
onSupport() => voidundefinedCallback invoked when user clicks the "Contact Escalation Team" link.
classNamestring""Custom Tailwind CSS class overrides for the container section.