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't find that page</Typography>
<Link href="/">Back to homepage</Link>
</ErrorPage>Properties
errorCode
<ErrorPage errorCode={500}>
<Typography>
Sorry, there's been an error loading this page.
</Typography>
<Link href="/">Back to homepage</Link>
</ErrorPage>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't find what you're looking for, but it'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 homepageFull API
Last updated on