Planned Downtime Window
Planned-downtime screen: a parenthetical eyebrow, a display headline, the downtime window shown as a ruled three-column record (Start / End / Duration), and a rounded email field that swaps to a confirmed state on submit.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/planned-downtime-window.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/error/error22.tsx instead.
Usage
The file also exports error22Demo, 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 { Error22, error22Demo } from "@/components/blocks/error/error22"; export default function Page() { return <Error22 {...error22Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | "(downtime)" | Small parenthetical label above the headline. |
| heading | ReactNode | none | Display headline. |
| description | string | undefined | Supporting copy under the headline. |
| window | DowntimeWindow | none | Start time, end time, and duration shown in the three-column record. |
| className | string | none | Extra classes for the outer section element. |
Types
type DowntimeWindow = { start: string; end: string; duration: string };
Behavior notes
- The email signup form is real client state (useState for the email value and a submitted flag): submitting swaps the rounded email field and button for a confirmed "You're on the list..." message, but nothing is actually sent anywhere.
- The three-column downtime window (Start / End / Duration) is static demo data, not a live countdown.
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.