Templates / Flows Flows template Appointment booking Book an appointment: a service, a day on a calendar, the free times of that day, checked details, a summary that follows, and a calendar file.
Live preview Desktops have one layout. On phones and tablets the same markup can also lay itself out like a native app: preview on a phone or a tablet .
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.
HTML React Vue Svelte Solid Angular
booking.html prismora/booking/data.ts prismora/booking/behavior.ts
<script type="module">
import '@prismora/css';
import '@prismora/elements/button';
import '@prismora/elements/calendar';
import '@prismora/elements/card';
import '@prismora/elements/drawer';
import '@prismora/elements/empty-state';
import '@prismora/elements/icon';
import '@prismora/elements/input';
import '@prismora/elements/list';
import '@prismora/elements/menu';
import '@prismora/elements/radio-group';
import '@prismora/elements/result';
import '@prismora/elements/textarea';
import '@prismora/elements/theme-settings';
import '@prismora/elements/theme-switch';
import '@prismora/elements/toggle-group';
import { registerIcons } from '@prismora/elements/icon';
import { calendar, calendarCheck, clock, download, mail, menu, messageCircle, settings, zap } from '@prismora/icons';
import { data } from './prismora/booking/data';
import { setup } from './prismora/booking/behavior';
registerIcons([calendar, calendarCheck, clock, download, mail, menu, messageCircle, settings, zap]);
setup(document.body, data);
</script>
<div class="pm-stack pm-gap-0">
<header class="pm-site-header">
<a href="/" class="pm-brand">
<pm-icon name="zap"></pm-icon>
<span class="pm-brand-name">Lumen</span>
</a>
<nav class="pm-site-nav" aria-label="Main">
<a href="/">Product</a>
<a href="/pricing">Pricing</a>
<a href="/customers">Customers</a>
<a href="/blog">Blog</a>
<a href="/help">Help</a>
</nav>
<div class="pm-site-actions">
<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>
<pm-button class="pm-site-wide" variant="ghost" tone="neutral" size="sm" href="/sign-in">Sign in</pm-button>
<pm-button size="sm" href="/sign-up">Start free</pm-button>
<pm-button class="pm-site-menu" variant="ghost" tone="neutral" size="sm" icon icon-start="menu" label="Menu" popovertarget="site-menu" aria-haspopup="menu"></pm-button>
<pm-menu id="site-menu">
<a role="menuitem" href="/">Product</a>
<a role="menuitem" href="/pricing">Pricing</a>
<a role="menuitem" href="/customers">Customers</a>
<a role="menuitem" href="/blog">Blog</a>
<a role="menuitem" href="/help">Help</a>
<hr>
<a role="menuitem" href="/sign-in">Sign in</a>
</pm-menu>
</div>
</header>
<pm-drawer id="display-settings" heading="Display settings" description="Saved in this browser." side="end">
<pm-theme-settings></pm-theme-settings>
</pm-drawer>
<main class="pm-site-section" data-space="sm">
<div class="pm-site-intro" data-ref="intro">
<span class="pm-eyebrow">Book a call</span>
<h1>Pick a time that suits you</h1>
<p class="pm-lead">Choose what you need, a day and a time. You get a confirmation and a calendar file.</p>
</div>
<form class="pm-split" data-side="end" novalidate style="--pm-side: 22rem; --pm-gap: var(--pm-space-8)" data-ref="form">
<div class="pm-stack pm-gap-6">
<pm-radio-group label="1. What do you need?" variant="card" value="demo" data-ref="service">
<pm-radio value="intro" description="20 minutes · free">Introduction call</pm-radio>
<pm-radio value="demo" description="45 minutes · free">Product demo</pm-radio>
<pm-radio value="workshop" description="90 minutes · $240">Team workshop</pm-radio>
</pm-radio-group>
<div class="pm-split">
<section class="pm-stack pm-gap-3" aria-labelledby="day-title">
<h2 id="day-title" class="pm-text-sm pm-weight-medium">2. Which day?</h2>
<pm-card size="sm">
<pm-calendar value="2026-12-07" min="2026-12-07" data-ref="calendar"></pm-calendar>
</pm-card>
</section>
<section class="pm-stack pm-gap-3" aria-labelledby="time-title">
<div class="pm-cluster">
<h2 id="time-title" class="pm-text-sm pm-weight-medium">3. What time?</h2>
<span class="pm-spacer"></span>
<span class="pm-text-xs pm-muted" data-ref="free"></span>
</div>
<div class="pm-cluster pm-gap-2" role="group" aria-labelledby="time-title" data-ref="slots">
<pm-toggle value="09:00">09:00</pm-toggle>
<pm-toggle value="09:30">09:30</pm-toggle>
<pm-toggle value="10:00">10:00</pm-toggle>
<pm-toggle value="10:30" disabled>10:30</pm-toggle>
<pm-toggle value="11:00" disabled>11:00</pm-toggle>
<pm-toggle value="11:30" disabled>11:30</pm-toggle>
<pm-toggle value="12:00" disabled>12:00</pm-toggle>
<pm-toggle value="12:30">12:30</pm-toggle>
<pm-toggle value="13:00">13:00</pm-toggle>
<pm-toggle value="13:30">13:30</pm-toggle>
<pm-toggle value="14:00" disabled>14:00</pm-toggle>
<pm-toggle value="14:30" disabled>14:30</pm-toggle>
<pm-toggle value="15:00" disabled>15:00</pm-toggle>
<pm-toggle value="15:30" disabled>15:30</pm-toggle>
<pm-toggle value="16:00">16:00</pm-toggle>
<pm-toggle value="16:30" disabled>16:30</pm-toggle>
</div>
<p class="pm-text-sm pm-text-danger" role="alert" data-ref="time-error" hidden>Choose a time.</p>
<pm-empty-state icon="calendar" heading="No free time on this day" description="Pick another day, or a shorter call." bordered data-ref="full" hidden></pm-empty-state>
</section>
</div>
<section class="pm-stack pm-gap-3" aria-labelledby="details-title">
<h2 id="details-title" class="pm-text-sm pm-weight-medium">4. Your details</h2>
<div class="pm-field-row">
<pm-input label="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>
</div>
<pm-textarea label="Anything we should know?" name="notes" rows="3" maxlength="500" show-count data-ref="notes"></pm-textarea>
</section>
</div>
<aside class="pm-sticky-side" aria-label="Your booking" style="--pm-sticky-top: 5rem">
<pm-card heading="Your booking">
<div class="pm-stack">
<pm-list divided label="Your booking">
<pm-list-item icon-start="message-circle" heading="Product demo" description="45 minutes" data-ref="sum-service"></pm-list-item>
<pm-list-item icon-start="calendar" heading="Monday 7 December" description="Day" data-ref="sum-date"></pm-list-item>
<pm-list-item icon-start="clock" heading="Not chosen yet" description="Time, in your time zone" data-ref="sum-time"></pm-list-item>
</pm-list>
<div class="pm-cluster pm-justify-between pm-text-lg pm-weight-semibold">
<span>Price</span>
<span data-ref="price">Free</span>
</div>
<pm-button class="pm-full" type="submit" size="lg" icon-start="calendar-check" data-ref="submit">Confirm booking</pm-button>
<p class="pm-text-xs pm-muted">Free to move or cancel up to 24 hours before.</p>
</div>
</pm-card>
</aside>
</form>
<pm-result class="pm-measure" status="success" heading="You are booked" heading-level="1" data-ref="done" hidden>
<pm-button icon-start="download" data-action="calendar">Add to my calendar</pm-button>
<pm-button variant="ghost" tone="neutral" data-action="again">Book another</pm-button>
</pm-result>
</main>
<footer class="pm-site-footer">
<div class="pm-site-footer-cols">
<div>
<a href="/" class="pm-brand">
<pm-icon name="zap"></pm-icon>
<span class="pm-brand-name">Lumen</span>
</a>
<p class="pm-muted">Roadmaps, tasks and metrics in one place, for teams that ship every week.</p>
</div>
<nav aria-label="Product">
<h3>Product</h3>
<a href="/">Overview</a>
<a href="/pricing">Pricing</a>
<a href="/changelog">Changelog</a>
<a href="/integrations">Integrations</a>
</nav>
<nav aria-label="Company">
<h3>Company</h3>
<a href="/about">About</a>
<a href="/customers">Customers</a>
<a href="/blog">Blog</a>
<a href="/careers">Careers</a>
</nav>
<nav aria-label="Support">
<h3>Support</h3>
<a href="/help">Help centre</a>
<a href="/contact">Contact</a>
<a href="/status">Status</a>
</nav>
</div>
<div class="pm-site-footer-bottom">
<span>© 2026 Lumen Labs</span>
<nav aria-label="Legal" class="pm-cluster pm-gap-4">
<a href="/privacy">Privacy</a>
<a href="/terms">Terms</a>
<a href="/security">Security</a>
</nav>
</div>
</footer>
</div> With the CLI npx @prismora/cli add booking --write Writes the page into your routes folder and both files into prismora/booking/.
With an AI agent (MCP) scaffold_page({ pattern: "booking", framework: "html" }) Components in this template