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/avatar';
import '@prismora/elements/button';
import '@prismora/elements/drawer';
import '@prismora/elements/icon';
import '@prismora/elements/input';
import '@prismora/elements/result';
import '@prismora/elements/theme-settings';
import '@prismora/elements/theme-switch';
import { registerIcons } from '@prismora/elements/icon';
import { arrowLeft, globe, lock, mail, settings, shieldCheck, zap } from '@prismora/icons';
import { data } from './prismora/forgot-password/data';
import { setup } from './prismora/forgot-password/behavior';
registerIcons([arrowLeft, globe, lock, mail, 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">Forgot your password?</h1>
<p class="pm-muted">Enter the email you signed up with. We send you a link to choose a new password.</p>
</div>
<form class="pm-stack" novalidate data-ref="form">
<pm-input label="Email" type="email" name="email" autocomplete="username" icon-start="mail" required data-ref="email"></pm-input>
<pm-button type="submit" size="lg" data-ref="submit">Send the link</pm-button>
</form>
<pm-result status="info" icon="mail" heading="Check your inbox" heading-level="2" data-ref="done" hidden>
<pm-button variant="outline" tone="neutral" data-action="again" data-ref="again">Send it again</pm-button>
<pm-button variant="ghost" tone="neutral" data-action="other">Use another address</pm-button>
</pm-result>
<p class="pm-text-sm">
<a href="/sign-in" class="pm-cluster pm-gap-1">
<pm-icon name="arrow-left"></pm-icon>
Back to sign in
</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 forgot-password --write
Writes the page into your routes folder and both files into prismora/forgot-password/.