System pages
A React block (a whole screen) in Beamline's Construction app.
The four pages a product shows when the normal one cannot: page not found (search and the likely places), something broke (try again, an error id to quote, the status page), down for maintenance (when it is back, counting down, and Email me when it's back), and offline (retrying by itself with growing pauses, the changes waiting to sync, and Back online when it returns). One block, a kind each, on a quiet field of split light.
Use it for
- Your router's not-found and error routes, the maintenance page your edge serves, and the screen an app shows when the network drops.
- A whole page or a large region whose content cannot be shown at all.
Not for
- An empty list, a search with no results or a panel that failed while the page works (empty-states).
- A message about part of a page (alert).
Anatomy
- a field of split light behind (still: it draws once and costs nothing at rest)
- the code or mark (404, 500, a wrench, a cut signal) set large
- title and one line in plain words
- not found: search, Go home (primary), the likely places as links
- something broke: Try again (primary), the error id with Copy, Status page
- maintenance: back at a time with the minutes counting down, how far along, Email me when it's back (primary), Status page
- offline: retrying in N seconds (pauses grow 2, 4, 8, 16, 30 s), changes waiting to sync, Try now (primary); Back online with Continue
Variants
- kind: not-found, server-error, maintenance, offline
States
- not found: searching (your handler), no suggestions
- something broke: retrying, still failing (says so, keeps the id), recovered (your handler moves on)
- maintenance: counting down, past the expected time (Taking longer than planned), subscribing, subscribed, address refused
- offline: waiting to retry, retrying, back online; the browser's own online and offline events move it at once
Keyboard
- Focus starts on the page's heading so a screen reader reads where it is; Tab reaches the primary action next
- / focuses the search on the not-found page
- Email me: Enter sends
Motion
The light is drawn still. The code rises once as the page arrives. The countdown's minutes roll. Offline's retry counter ticks once a second only while it waits; Back online replaces the mark with a drawn check. Reduced motion places everything at once.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
kind (required) | "not-found" | "server-error" | "maintenance" | "offline" | — | |
product | string | — | Your product's name, in the words. |
onHome | () => void | — | Go home (not found) and Continue (back online). |
onSearch | (query: string) => void | — | Shows the search on the not-found page. |
suggestions | { label, description?, href?, onSelect? }[] | — | Likely places on the not-found page. |
errorId | string | — | The id to quote to support. |
onRetry | () => Promise<void> | — | Try again (something broke) and Try now (offline); reject while it still fails. |
statusHref | string | — | Your status page. |
maintenance | { from: number; until: number; note?: string } | — | The maintenance window, in ms. |
onSubscribe | (email: string) => Promise<void> | — | Shows Email me when it's back. |
queued | number | — | Changes waiting to sync while offline. |
level | 1 | 2 | — | |
className / classNames / style / ref | string / SystemPageClassNames / CSSProperties / Ref<HTMLDivElement> | — | className: Classes on the documented visual root; no override by default. classNames: Classes for the named visual parts; no overrides by default. style: Inline styles on the documented visual root; no overrides by default. ref: Receives the documented native target or imperative handle; omitted by default. |
className | string | — | Classes on the documented visual root; no override by default. |
classNames | Partial<Record<"root" | "title" | "body" | "mark" | "actions" | "light", string>> | — | Classes for the named visual parts; no overrides by default. |
style | CSSProperties | — | Inline styles on the documented visual root; no overrides by default. |
ref | Ref<HTMLDivElement> | — | Receives the documented native target or imperative handle; omitted by default. |
Built from
- light-band
- button
- search-field
- item
- copy-button
- input
- progress
- slot-text
- spinner
- badge
Dependencies
lucide-react, motion
Import
import { SystemPage } from "@beamline/system-page";
Get it
System pages is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Get Beamline · Connect your agent
More in Construction
- Submittal register: The documents a trade owes a project before its material is bought, on the clocks that matter: a log whose rows each draw their way to site on one shared…
- Change orders: Change orders against a contract, with the money drawn where it stands: one bar of the original contract, each approved change, a line at the current…
- Inspection review: A unit's inspection, reviewed in three views. Findings: rooms and features with their condition, answers, notes and photos, and each feature's…
- Work orders: A maintenance work order that coordinates subtasks: the children's progress drawn by status with cancelled ones counted apart, the parent completed on…
- Action center: Everything waiting on a person across projects: a strip of every open item on the days ahead, one lane per kind of owing (You submit, You answer, Tasks…
- Company access: A project's companies as one board: No company first (office access waits for a company, and says so), then each company with its code and its people…
- Condition checklist: An inspection by area. Each item marked good (success), soon (warning) or needs work now (danger), or not checked yet and kept apart below; what was…
- Corrective actions: A corrective action raised from a failed inspection answer, for food safety, facilities or quality teams. The answer, its photo and note are pinned above…
- Quality checks: Quality checks by picture and the control points that make them. A check asks for one photo: an upload that fails keeps its file with Try again, and…
- Maintenance plan: Maintenance of shared equipment. The instruments, most urgent first, each with its most pressing kind and how due it is (overdue, due soon, fine, never…
- Maintenance plans: An operations team's maintenance plans. The queue lists every asset-plan pair (one machine can appear under two plans) with its last service, next due…
- Equipment register: A business's machines and vehicles: a register filtered by status (in use, in repair, sold, each counted) with each machine's photo or type icon…
- Asset workspace: One physical asset: a machine, vehicle or piece of plant. Its header keeps the system id apart from the name and serial, with type, site, status and the…
- Asset packs: Packs of assets (sounds, presets, fonts), the providers they come from and the storage they take. Download and install are two phases with their own…
- Instrument use: Shared instruments. The slot search reads as one sentence (how long, which instrument type, the dates and the working hours with the lab's time zone)…
- Job booking: A customer books a home or field-service job on the company's own site, phone first. Services with how many units, each unit adding its time and price…
- Job booking setup: Online booking for a field-service company, set up from three sides that feed one booking form. Services: each priced and timed per unit with whether it…
- Rental availability: A rental shop's availability: a product's month for the quantity a customer wants (each day available, some left with the count, booked out or not known…
- Rooms & equipment: A salon's or clinic's rooms and equipment and what its services need of them: resources by group at each location, how many appointments each holds at…