Staaarter

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.

By Staaarter Team
Error
Docs
Live preview

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.json

Prefer 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

PropTypeDefaultDescription
eyebrowstring"404 error"Small label above the heading.
headingstring"This page has wandered off"Headline shown under the fixed "404" status number.
descriptionstring"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.
imageMediaSlotImagenoneFull-bleed background photo behind the dark overlay.
primaryLabelstring"Back to homepage"Label for the solid button.
primaryHrefstring"#"Link target for the solid button.
secondaryLabelstring"Contact support"Label for the outline button.
secondaryHrefstring"#"Link target for the outline button.
classNamestringnoneExtra 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.