Fullscreen 404 With Background
A screen-height 404 built for marketing sites: a full-bleed background photo with a dark overlay sits behind centered white messaging and a solid-plus-outline button pair, giving the error page the same visual weight as the rest of the site.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button, media-slot dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/fullscreen-404-with-background.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/error/error10.tsx instead.
Usage
The file also exports error10Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Error10, error10Demo } from "@/components/blocks/error/error10"; export default function Page() { return <Error10 {...error10Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | "404 error" | Small label above the heading. |
| heading | string | "This page has wandered off" | Headline shown under the fixed "404" status number. |
| description | string | "The page you're looking for doesn't exist or has been moved. Let's get you back on track." | Short supporting copy under the heading. |
| image | MediaSlotImage | none | Full-bleed background photo behind the dark overlay. |
| primaryLabel | string | "Back to homepage" | Label for the solid button. |
| primaryHref | string | "#" | Link target for the solid button. |
| secondaryLabel | string | "Contact support" | Label for the outline button. |
| secondaryHref | string | "#" | Link target for the outline button. |
| className | string | none | Extra classes for the outer section element. |
Behavior notes
- Both buttons render as real Next.js Link components via the button's render prop, but default to "#" until you supply your own hrefs, nothing is submitted anywhere.
- Photo via Unsplash, reused from an existing Coming Soon block.
More Error Blocks
View all →centered-404-message
Centered 404 Message
Minimal centered 404 with two CTAs and a divided row of popular page links.
404-with-site-search
404 With Site Search
404 screen with a working search box and a bordered list of suggested pages.
split-404-with-image
Split 404 With Image
Two-column 404 with the message on one side and a full-bleed photo that scales on hover on the other.
404-with-destination-cards
404 With Destination Cards
404 screen with a grid of icon destination cards plus fallback CTA buttons.
404-support-panel
404 Support Panel
Card-style 404 echoing the requested URL, with a real back button and a support/status link row.
inline-404-line
Inline 404 Line
The smallest possible 404: code and message on one divided line with one button underneath.