Skip to Content
🎉 Coral x Panda has been released 🎉 Read the Migration Guide

ErrorPage

An organism to display a 404 Page not found error.

Basic Usage

import { ErrorPage } from '@krakentech/coral-organisms'; import { Typography, Link } from '@krakentech/coral'; <ErrorPage> <Typography>Sorry, we can&apos;t find that page</Typography> <Link href="/">Back to homepage</Link> </ErrorPage>

404

404

Sorry, we can’t find that page

Back to homepage

Properties

errorCode

<ErrorPage errorCode={500}> <Typography> Sorry, there&apos;s been an error loading this page. </Typography> <Link href="/">Back to homepage</Link> </ErrorPage>

500

500

Sorry, there’s been an error loading this page.

Back to homepage

variant

Lets your users spend some quality time in the ballpond. Mostly meant to be used in fullscreen (with contained={false}). → check out the docs 404 page for a fullscreen example.

<ErrorPage variant="ballpond" contained> <Container zIndex={1}> <Stack flexDirection="column" alignItems="center" justifyContent="center" fullWidth> <Typography> We couldn&apos;t find what you&apos;re looking for, but it&apos;s probably in here somewhere! </Typography> <Link href="/">Back to homepage</Link> </Stack> </Container> </ErrorPage>

404

404

We couldn’t find what you’re looking for, but it’s probably in here somewhere!

Back to homepage
Loading

Full API

NameTypeDefault
errorCodestring | number

HTTP-like error code to display

404
variant"cycling" | "ballpond"

Visual variant

"default"
containedboolean

Contain the 3D canvas to the ErrorPage container, instead of fixed fullscreen. Only applies to ballpond variant.

false
childrenReact.ReactNode
Last updated on