Patterns · Feedback
StatusPage
Since v10.5.0
A whole page for one state: not found, server error, maintenance, offline or no access.
import { StatusPage } from '@nexub/patterns';Examples
Not found
Server error with Retry
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| kindrequired | 'notFound' | 'serverError' | 'maintenance' | 'offline' | 'noAccess' | — | Which state. Sets the default text and illustration. serverError and offline are announced as alerts. |
| title | React.ReactNode | — | Overrides the localised title (the one h1). |
| description | React.ReactNode | — | Overrides the localised description. |
| code | string | — | A small line above the title, e.g. "404". |
| actions | React.ReactNode | — | Buttons under the text. Replaces the default Retry or Back to home. |
| illustration | React.ReactNode | — | Art above the text. Defaults to the Illustration for the kind; null hides it. |
| onRetry | (() => void) | — | Shows a Retry button for serverError and offline. |
| homeHref | string | — | Shows a "Back to home" link for notFound and noAccess. |
| fullScreen | boolean | — | At least as tall as the viewport. |
| as | 'main' | 'div' | 'section' | 'main' | Landmark element. Use div inside an app shell that already renders <main>. |
On iOS & Android
Web only
StatusPage has no @nexub/react-native twin. On phones, follow the platform pattern instead, or compose it from the native components listed on the React Native page.