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-page

Usage

import { ErrorPage } from "@/components/ui/error-page";

<ErrorPage code={404} actions={<Button asChild><a href="/">Home</a></Button>} />

API reference

PropTypeDefaultDescription
codestring | number404The status. 404, 500 and 403 come with their own title and text.
title / descriptionstring / ReactNodeOverride the default words.
actionsReactNodeWays out, such as Home and Go back.

View the source on GitHub