Skip to content
nexubDesign System
v11.9.0

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';
View as Markdown

Examples

Not found

404

Page not found

The page may have moved, or the link may be wrong.

Server error with Retry

Props

Props
PropTypeDefaultDescription
kindrequired'notFound' | 'serverError' | 'maintenance' | 'offline' | 'noAccess'—Which state. Sets the default text and illustration. serverError and offline are announced as alerts.
titleReact.ReactNode—Overrides the localised title (the one h1).
descriptionReact.ReactNode—Overrides the localised description.
codestring—A small line above the title, e.g. "404".
actionsReact.ReactNode—Buttons under the text. Replaces the default Retry or Back to home.
illustrationReact.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.
homeHrefstring—Shows a "Back to home" link for notFound and noAccess.
fullScreenboolean—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