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/alert';
import '@prismora/elements/avatar';
import '@prismora/elements/button';
import '@prismora/elements/checkbox';
import '@prismora/elements/drawer';
import '@prismora/elements/icon';
import '@prismora/elements/pin-input';
import '@prismora/elements/result';
import '@prismora/elements/theme-settings';
import '@prismora/elements/theme-switch';
import { registerIcons } from '@prismora/elements/icon';
import { arrowRight, globe, info, lock, settings, shieldCheck, zap } from '@prismora/icons';
import { data } from './prismora/verify/data';
import { setup } from './prismora/verify/behavior';
registerIcons([arrowRight, globe, info, lock, settings, shieldCheck, zap]);
setup(document.body, data);
</script>
<div class="pm-auth">
<aside class="pm-auth-aside" aria-label="About Lumen">
<a href="/" class="pm-brand">
<pm-icon name="zap"></pm-icon>
<span class="pm-brand-name">Lumen</span>
</a>
<figure class="pm-quote">
<blockquote class="pm-text-2xl pm-weight-medium">“We replaced three tools, and the planning meeting got thirty minutes shorter.”</blockquote>
<figcaption>
<pm-avatar name="Grace Hopper"></pm-avatar>
<span class="pm-stack pm-gap-0">
<strong>Grace Hopper</strong>
<span class="pm-muted">VP Product, Northwind</span>
</span>
</figcaption>
</figure>
<ul class="pm-stack pm-gap-3 pm-text-sm" role="list">
<li class="pm-cluster">
<pm-icon name="shield-check" class="pm-text-accent"></pm-icon>
<span class="pm-grow">Single sign-on, passkeys and two-step verification</span>
</li>
<li class="pm-cluster">
<pm-icon name="lock" class="pm-text-accent"></pm-icon>
<span class="pm-grow">Your data is encrypted in transit and at rest</span>
</li>
<li class="pm-cluster">
<pm-icon name="globe" class="pm-text-accent"></pm-icon>
<span class="pm-grow">Hosted in the region you choose</span>
</li>
</ul>
</aside>
<main class="pm-auth-main">
<a href="/" class="pm-brand">
<pm-icon name="zap"></pm-icon>
<span class="pm-brand-name">Lumen</span>
</a>
<div class="pm-stack pm-gap-2" data-ref="intro">
<h1 class="pm-text-3xl pm-heading" data-ref="title">Check your phone</h1>
<p class="pm-muted" data-ref="lead">Enter the 6-digit code we sent to •••• 0142. It works for 10 minutes.</p>
</div>
<pm-alert tone="info" icon="info" data-ref="demo">This is a demo: the code is 123456.</pm-alert>
<pm-alert tone="danger" heading="Too many wrong codes" data-ref="locked" hidden>
Ask for a new code to try again.
<pm-button slot="actions" size="sm" variant="outline" tone="neutral" data-action="resend">Send a new code</pm-button>
</pm-alert>
<form class="pm-stack" novalidate data-ref="form">
<pm-pin-input label="Verification code" length="6" separator="3" required data-ref="code"></pm-pin-input>
<pm-checkbox label="Do not ask again on this device for 30 days" data-ref="trust"></pm-checkbox>
<pm-button type="submit" size="lg" data-ref="submit">Verify</pm-button>
<div class="pm-cluster pm-justify-between">
<pm-button variant="link" size="sm" data-action="resend" data-ref="resend">Send a new code</pm-button>
<pm-button variant="link" size="sm" data-action="method" data-ref="method">Use an authenticator app</pm-button>
</div>
</form>
<pm-result status="success" heading="You are verified" heading-level="2" data-ref="done" hidden>
<pm-button href="/dashboard" icon-end="arrow-right">Go to the dashboard</pm-button>
</pm-result>
<p class="pm-text-sm pm-muted" data-ref="help">
Lost your phone?
<a href="/help">Use a recovery code</a>
</p>
</main>
</div>
<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 verify --write
Writes the page into your routes folder and both files into prismora/verify/.