ErrorPage
Site error page for displaying 404/500 errors.
pnpm add @wandercom/design-system-web
7 lines
import { ErrorPage } from '@wandercom/design-system-web/blocks/error-page';
export function Example() {
return (
<ErrorPage variant='404' />
);
}Loading example...
1 lines
<ErrorPage variant='404' />Loading example...
1 lines
<ErrorPage variant='500' />Loading example...
1 lines
<ErrorPage variant='404' title='Some custom title' description='Some custom description' />variant?:
"404" | "500"
The variant (HTTP error code) of the page to display. Affects the defaults and the background SVG.
title?:
string
The page title. Defaults differ based on variant.
description?:
string
The page description. Defaults differ based on variant.
primaryButton?:
{ asChild?: boolean; children?: ReactNode; onClick?: Function }
Props for the primary button.
secondaryButton?:
{ asChild?: boolean; children?: ReactNode; onClick?: Function }
Props for the secondary button.
className?:
string
Additional CSS classes to apply to the container.