Staaarter

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.

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 dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/planned-downtime-window.json

Prefer 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

PropTypeDefaultDescription
eyebrowstring"(downtime)"Small parenthetical label above the headline.
headingReactNodenoneDisplay headline.
descriptionstringundefinedSupporting copy under the headline.
windowDowntimeWindownoneStart time, end time, and duration shown in the three-column record.
classNamestringnoneExtra 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.