NERV-UI DOCS
inspection terminal
live
doc.access // online
NERV COMPONENT INSPECTION
route integrity monitored

Emergency Banner

Full-screen or inline alert banner with mirrored hazard bands, massive condensed title type, and scanline treatment. Seven severity levels cover every operational scenario — from routine information to total system failure.

[SRC]tsx
1import { EmergencyBanner } from "@mdrbx/nerv-ui";

Basic Usage

DEFAULTinspection frame
live inspectionframe-01

Severity Variants

Seven severity levels control the color scheme, hazard stripe style, and flickering behavior.

//Emergency (Red — flickering)

EMERGENCYinspection frame
live inspectionframe-01

//Warning (Orange — flickering)

WARNINGinspection frame
live inspectionframe-01

Static Bands

Disable stripe motion when you want a frozen broadcast frame or a cleaner capture.

STATICinspection frame
live inspectionframe-01

//Info (Cyan — static)

INFOinspection frame
live inspectionframe-01

//Success (Green — static)

SUCCESSinspection frame
live inspectionframe-01

//Critical (Red inverted — white text, flickering)

CRITICALinspection frame
live inspectionframe-01

//Contrast (Black & white — high visibility)

CONTRASTinspection frame
live inspectionframe-01

//Disabled (Gray — muted)

DISABLEDinspection frame
live inspectionframe-01

With Children

The children prop allows embedding links, buttons, or other interactive content inside the banner.

CHILDRENinspection frame
live inspectionframe-01

Props

PropTypeDefaultDescription
textstring"EMERGENCY"Main alert text displayed in large type
subtextstringSecondary message below the main text
visiblebooleantrueControls visibility with AnimatePresence enter/exit animation
severity"emergency" | "warning" | "info" | "success" | "critical" | "contrast" | "disabled""emergency"Visual severity level controlling colors, stripes, and flickering
fullScreenbooleanfalseFixed full-screen overlay mode vs inline container
animateStripesbooleantrueAnimates the mirrored hazard bands; disable for a static broadcast frame
childrenReactNodeOptional content rendered below subtext (links, buttons, etc.)
classNamestring""Additional CSS classes

Accessibility

[i]ARIA ATTRIBUTES

EmergencyBanner uses role="alert" and aria-live="assertive" to announce the alert to screen readers immediately when it becomes visible.

[i]ANIME BANNER LANGUAGE

The emergency and warning variants intentionally push toward the anime broadcast look: dominant black type on a hot field, mirrored diagonal bands collapsing toward center, and much less decorative chrome than a normal HUD panel.