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/input';
import '@prismora/elements/result';
import '@prismora/elements/segmented';
import '@prismora/elements/tag';
import '@prismora/elements/theme-settings';
import '@prismora/elements/theme-switch';
import { registerIcons } from '@prismora/elements/icon';
import { arrowRight, check, globe, lock, mail, settings, shieldCheck, zap } from '@prismora/icons';
import { data } from './prismora/sign-up/data';
import { setup } from './prismora/sign-up/behavior';
registerIcons([arrowRight, check, 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">Create your account</h1>
<p class="pm-muted">
Already have one?
<a href="/sign-in">Sign in</a>
</p>
<ul class="pm-cluster pm-gap-2" role="list">
<li>
<pm-tag icon-start="check">Free for teams of up to five</pm-tag>
</li>
<li>
<pm-tag icon-start="check">No card needed</pm-tag>
</li>
<li>
<pm-tag icon-start="check">Set up in two minutes</pm-tag>
</li>
</ul>
</div>
<pm-alert tone="danger" heading="This address has an account" data-ref="taken" hidden>
Sign in instead, or ask for a new password.
<pm-button slot="actions" size="sm" variant="outline" tone="neutral" href="/sign-in">Sign in</pm-button>
</pm-alert>
<form class="pm-stack" novalidate data-ref="form">
<pm-input label="Full name" name="name" autocomplete="name" required data-ref="name"></pm-input>
<pm-input label="Work email" type="email" name="email" autocomplete="email" icon-start="mail" required data-ref="email"></pm-input>
<pm-input label="Password" type="password" name="password" autocomplete="new-password" password-toggle strength required hint="At least 12 characters. A sentence is easiest to remember." data-ref="password"></pm-input>
<div class="pm-stack pm-gap-2">
<span class="pm-text-sm pm-weight-medium" aria-hidden="true">Team size</span>
<pm-segmented label="Team size" name="size" value="small" data-ref="size">
<pm-segment value="solo">Just me</pm-segment>
<pm-segment value="small">2 to 10</pm-segment>
<pm-segment value="medium">11 to 50</pm-segment>
<pm-segment value="large">Over 50</pm-segment>
</pm-segmented>
</div>
<pm-checkbox name="terms" required data-ref="terms">
I agree to the
<a href="/terms">terms</a>
and the
<a href="/privacy">privacy policy</a>
</pm-checkbox>
<pm-checkbox name="news" label="Send me product news, about once a month"></pm-checkbox>
<pm-button type="submit" size="lg" icon-end="arrow-right" data-ref="submit">Create account</pm-button>
</form>
<pm-result status="success" heading="Check your inbox" heading-level="2" data-ref="done" hidden>
<pm-button href="/verify" icon-end="arrow-right">Enter the code</pm-button>
<pm-button variant="ghost" tone="neutral" data-action="again">Use another address</pm-button>
</pm-result>
</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 sign-up --write
Writes the page into your routes folder and both files into prismora/sign-up/.