Components › Blocks
Error page
A full-page error: the status large, what happened in plain words and a way out.
Installation
npx plankui@latest add error-pageUsage
import { ErrorPage } from "@/components/ui/error-page";
<ErrorPage code={404} actions={<Button asChild><a href="/">Home</a></Button>} />API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| code | string | number | 404 | The status. 404, 500 and 403 come with their own title and text. |
| title / description | string / ReactNode | Override the default words. | |
| actions | ReactNode | Ways out, such as Home and Go back. |