Error page
When a page is not there: the code drawn huge, the bird that lost its way, one sentence, a search and the ways back — never a dead end.
- Domain
- Page blocks & templates
- Support level
- Size
- 0.7 kB gzip, budget 0.5 kB
- Who uses it
- 6 files of the live products and sites import it (Verikora: 1, Folioviv: 1, Sovkora: 2, krizaka.com: 1) Counted in the dated inventory of 2026-11-23.
import { ErrorPage } from "@krizaka/ui/error-page";Web only — React, from @krizaka/ui/error-page. Beta: its API may still change in a minor version.
- Mobile · n/a. A whole page of a public site; a phone app's screens are built from Screen, Header and the native primitives.
Why it is here. Used by Verikora, Folioviv, krizaka.com.
When to use
- Not found (404), server error (500), offline.
- Any page that cannot show what was asked.
When not to use
- For something not built yet.
- For an empty list inside a page.Use instead: Empty state
Installation
Install
npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcssStyles
@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";Import
import { ErrorPage } from "@krizaka/ui/error-page";Examples
Not found
The pigeon, a search and three ways back.
Props
An error page: the code drawn, the bird, a sentence, a search and the ways back.
| Prop | Type | Default | Description |
|---|---|---|---|
coderequired | string | — | The code (404, 500): drawn, not read — the title says it in words. |
titlerequired | ReactNode | — | The page's h1 (This page took another road). |
actions | ReactNode | — | The ways back (an ActionBar: home, the docs, contact). |
mascot | ReactNode | — | The bird beside the code (a Mascot in its empty or error mood). |
search | ReactNode | — | A search, to find what was meant. |
text | ReactNode | — | What happened and what to do, in one or two sentences. |
Accessibility
- The code is hidden from assistive technology; the
h1says what happened. - The ways back are a named list of links.
Best practices
- The title says it in words; the code is drawn, not read.
- Offer a search and two or three ways back.
- Words and content arrive as props; the motion is the platform's (
[data-reveal], still under reduced motion).
Related components
Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub