Desktops have one layout. On phones and tablets the same markup can also lay itself out like a native app: or .
Code
Copy it into a page of your app. Load the CSS and register the components once (see framework setup); links point at routes like /orders that you replace with your own.
This template works: the page renders from data.ts (sample rows, replace them with your API) and behavior.ts makes its controls work. The behaviour file is the same in every framework.
<script type="module">
import '@prismora/css';
import '@prismora/elements/accordion';
import '@prismora/elements/badge';
import '@prismora/elements/button';
import '@prismora/elements/card';
import '@prismora/elements/copy-button';
import '@prismora/elements/description-list';
import '@prismora/elements/drawer';
import '@prismora/elements/icon';
import '@prismora/elements/result';
import '@prismora/elements/status';
import '@prismora/elements/switch';
import '@prismora/elements/theme-settings';
import '@prismora/elements/theme-switch';
import { registerIcons } from '@prismora/elements/icon';
import { activity, arrowRight, rotateCcw, settings, zap } from '@prismora/icons';
import { data } from './prismora/server-error/data';
import { setup } from './prismora/server-error/behavior';
registerIcons([activity, arrowRight, rotateCcw, settings, zap]);
setup(document.body, data);
</script>
<main class="pm-centered-page" style="--pm-container: 34rem">
<a href="/" class="pm-brand pm-justify-center">
<pm-icon name="zap"></pm-icon>
<span class="pm-brand-name">Lumen</span>
</a>
<div class="pm-stack pm-items-center pm-text-center" data-ref="problem">
<pm-badge tone="danger" size="lg">Error 500</pm-badge>
<h1 class="pm-text-4xl pm-heading">Something went wrong on our side</h1>
<p class="pm-lead">We have been told and are working on it. Your work is saved.</p>
<div class="pm-cluster pm-justify-center">
<pm-button icon-start="rotate-ccw" data-action="retry" data-ref="retry">Try again</pm-button>
<pm-button variant="outline" tone="neutral" href="/status" icon-start="activity">Status page</pm-button>
</div>
<p class="pm-text-sm pm-muted" role="status" data-ref="note"></p>
<pm-switch label="Try again automatically" checked data-ref="auto"></pm-switch>
</div>
<pm-result status="success" heading="We are back" heading-level="1" description="Everything is working again. Thank you for waiting." data-ref="back" hidden>
<pm-button href="/dashboard" icon-end="arrow-right">Continue</pm-button>
</pm-result>
<pm-card heading="Right now" data-ref="services">
<ul class="pm-stack pm-gap-2" role="list">
<li class="pm-cluster pm-justify-between">
<span>Web app</span>
<pm-status tone="danger">Not responding</pm-status>
</li>
<li class="pm-cluster pm-justify-between">
<span>API</span>
<pm-status tone="warning">Slow</pm-status>
</li>
<li class="pm-cluster pm-justify-between">
<span>Payments</span>
<pm-status tone="success">Working</pm-status>
</li>
<li class="pm-cluster pm-justify-between">
<span>Email and notifications</span>
<pm-status tone="success">Working</pm-status>
</li>
</ul>
</pm-card>
<pm-accordion>
<pm-accordion-item heading="Details for support">
<div class="pm-stack">
<div class="pm-cluster">
<span class="pm-muted">Reference</span>
<code data-ref="reference">ERR-7F3A-2291</code>
<pm-copy-button size="sm" value="ERR-7F3A-2291" label="Copy the reference"></pm-copy-button>
</div>
<pm-description-list divided label="Details">
<pm-description-item label="Time">4 December 2026, 10:42 UTC</pm-description-item>
<pm-description-item label="Request">req_8c41f09b2e</pm-description-item>
<pm-description-item label="Region">eu-west-2</pm-description-item>
</pm-description-list>
<p class="pm-text-sm pm-muted">
Send the reference to
<a href="mailto:[email protected]">[email protected]</a>
if this keeps happening.
</p>
</div>
</pm-accordion-item>
</pm-accordion>
</main>
<div class="pm-display-corner">
<pm-theme-switch size="sm" class="pm-site-wide" variant="toggle"></pm-theme-switch>
<pm-button size="sm" variant="ghost" tone="neutral" icon icon-start="settings" label="Display settings" commandfor="display-settings" command="--open"></pm-button>
</div>
<pm-drawer id="display-settings" heading="Display settings" description="Saved in this browser." side="end">
<pm-theme-settings></pm-theme-settings>
</pm-drawer>
With the CLI
npx @prismora/cli add server-error --write
Writes the page into your routes folder and both files into prismora/server-error/.