Error Page
Error Page is a simple, user-friendly fallback screen designed to handle broken routes, missing content, or unexpected issues gracefully. It informs users that something went wrong while guiding them back to a safe path with clear messaging and navigation options. Built with a clean layout and responsive design, this page helps maintain a polished experience even when errors occur.
ui@radix-ui/react-slotclass-variance-authority
Installation
$npx futureuikit add error-page
Import
import { ErrorPage } from "@/components/ui/error-page"
Layout Variant
Color Theme
Theme
Size
Named Keys & Props
Pass these exact named keys as props on <ErrorPage />. Click any color pill to copy the prop.
colorDefault is "default"(Black & White)variantVisual style"solid""outline""ghost""link"themeSurface theme"default""modern""clean""futuristic""brutal""halftone"sizeComponent size"sm""md""lg""xl""full"Usage Example
A basic implementation example to get you started.
Example Implementation
import { ErrorPage } from"@/components/ui/error-page";
export default function Example() {
return <ErrorPage errorCode="404"errorText="NOT FOUND"/>;
}Features
Key capabilities and highlights.
Key Capabilities
- ◆Displays a clear message when a page is not found or an error occurs.
- ◆Helps users understand that something went wrong without confusion.
- ◆Provides action buttons or links to navigate back to safe pages.
- ◆Maintains a clean and consistent layout with the rest of the UI.
- ◆Works well for 404, 500, and general fallback scenarios.
- ◆Designed to be lightweight and easy to customize with CSS.
Notes
Important implementation details to consider.
Implementation Details
- ◆Install: Run'npx futureuikit add error-page'.
- ◆Import:'import { ErrorPage } from "@/components/ui/error-page";'
- ◆Deployment: Use this component inside your Next.js'not-found.tsx'or'error.tsx'files.
- ◆Props: Customize the visual message via'errorCode'and'errorText'props.
- ◆Styling: The neon effect is self-contained; ensure you have the'antialiased'class on your body for best text rendering.