Payment Required Lockout
A split-screen billing lockout page: an accent card-icon chip, headline, and Update payment button on the left, and on the right an unpaid invoice table (invoice number, amount, due date) followed by a bulleted list reassuring the visitor what still works while the account is on hold.
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/payment-required-lockout.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/error/error26.tsx instead.
Usage
The file also exports error26Demo, 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 { Error26, error26Demo } from "@/components/blocks/error/error26"; export default function Page() { return <Error26 {...error26Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | ReactNode | none | Main headline on the left panel. |
| description | string | none | Supporting copy under the headline. |
| updateLabel | string | none | Label for the Update payment button. |
| updateHref | string | none | Href for the Update payment button. |
| invoices | UnpaidInvoice[] | none | Rows of the unpaid invoice table. |
| retainedItems | string[] | none | Bulleted list of what stays untouched while the account is locked. |
| className | string | none | Extra classes for the outer section element. |
Types
interface UnpaidInvoice { number: string; amount: string; dueDate: string; }
Behavior notes
- Fully static server component: no client state, hooks, or interactivity of any kind.
- The Update payment button renders as a real Next.js Link via the render prop, but does not open any real billing flow.
- The invoice table and the retained-items list are both static demo data.
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.