Slide-Over Cart Drawer
A basket panel with the dialog mechanics usually missing: focus trap, focus return, Escape to close and a background scroll lock.
Guest as the default and the whole form, with a real autocomplete token on every field and the account offer moved to the end, where it costs one checkbox.
components/guest-checkout-form.tsxnpx hoverlab add guest-checkout-form
Or over MCP, from your editor's agent — no account needed.
Free to read, copy and install, for personal and non-commercial projects. Shipping it in client work or a paid product needs Pro ($79 once). The source lands in your repo and stops being ours — no attribution, nothing to upgrade.
Start a page with this section — add more, order them, and leave with the page source.
Rendered live in your current theme — this is the same component whose source is below, not a screenshot of it.
'use client'
/**
* <GuestCheckoutForm> — buying without an account, and being asked properly.
*
* The forced-registration wall is the most studied conversion mistake in
* e-commerce and it is still everywhere, usually in a softened form that is
* almost as bad: guest checkout offered, but as the smaller, greyer option
* beside a login card, so the page still reads as "sign in to buy".
*
* THIS BLOCK TAKES THE OTHER POSITION
*
* Guest is the default and the whole form. Signing in is one line above it for
* people who want their saved details, and creating an account is offered
* *after* the payment details are in — at which point it costs one checkbox
* and a password, because the email and address have already been typed.
* Asking at the end converts; asking at the start filters.
*
* THE EMAIL FIELD CARRIES ITS OWN REASON
*
* "For your receipt and delivery updates. We will not add you to anything."
* The commonest reason people abandon at the email field is not knowing what
* it is for, and one line of copy is cheaper than any amount of trust badging.
*
* ONE FIELD PER LINE, AND A REAL AUTOCOMPLETE TOKEN ON EVERY ONE
*
* `given-name`, `family-name`, `address-line1`, `postal-code`, `tel`. Browser
* autofill is the single biggest speed-up available to a checkout and it is
* disabled by any field that omits the token or invents its own. Side-by-side
* name fields are the other common cause of a broken autofill.
*
* THE ORDER SUMMARY IS ON THE PAGE, NOT BEHIND A DISCLOSURE. On mobile it
* moves above the form as a collapsed row that still shows the total, because
* a total that requires a tap to see is a total people leave to check.
*
* ACCESSIBILITY: a single `<form>` with grouped `<fieldset>`s; errors are tied
* to fields with `aria-describedby` rather than announced only in a banner;
* the account offer is a checkbox that reveals one field, and the revealed
* field is focusable and labelled rather than a placeholder-only input.
*/
import * as React from 'react'
import { Lock, Mail, ShieldCheck, UserPlus } from 'lucide-react'
export interface CheckoutLine {
id: string
name: string
variant: string
quantity: number
price: number
}
export interface GuestCheckoutFormProps {
lines?: CheckoutLine[]
delivery?: number
currency?: string
className?: string
}
const DEFAULT_LINES: CheckoutLine[] = [
{ id: 'l1', name: 'Meridian task chair', variant: 'Graphite mesh', quantity: 1, price: 420 },
{ id: 'l2', name: 'Halo task lamp', variant: 'Brushed steel', quantity: 2, price: 145 },
]
const INPUT_CLASS =
'w-full rounded-lg border border-border bg-background px-3 py-2 text-sm outline-none transition-colors focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-ring'
export function GuestCheckoutForm({
lines = DEFAULT_LINES,
delivery = 12,
currency = '£',
className = '',
}: GuestCheckoutFormProps) {
const uid = React.useId()
const [wantsAccount, setWantsAccount] = React.useState(false)
const [email, setEmail] = React.useState('')
const goods = lines.reduce((sum, line) => sum + line.price * line.quantity, 0)
const total = goods + delivery
const money = (value: number) => `${currency}${value.toFixed(2)}`
return (
<section className={`bg-background px-4 py-10 sm:px-6 ${className}`}>
<div className="mx-auto max-w-4xl">
<h2 className="text-xl font-bold tracking-tight">Checkout</h2>
{/* One line, above the form. Not a card competing with it. */}
<p className="mt-1 text-sm text-muted-foreground">
Checking out as a guest.{' '}
<a href="#" className="font-medium text-primary underline-offset-4 hover:underline">
Sign in instead
</a>{' '}
to use saved addresses and cards.
</p>
{/* On mobile the total is visible without a tap. */}
<div className="mt-5 flex items-center justify-between gap-3 rounded-xl border border-border bg-card p-4 lg:hidden">
<span className="text-sm text-muted-foreground">
{lines.reduce((n, l) => n + l.quantity, 0)} items
</span>
<span className="text-base font-bold">{money(total)}</span>
</div>
<div className="mt-5 grid gap-8 lg:grid-cols-[minmax(0,1fr)_18rem]">
<form
id={`${uid}-form`}
onSubmit={(e) => e.preventDefault()}
className="space-y-8"
>
<fieldset className="border-0 p-0">
<legend className="text-sm font-semibold">Contact</legend>
<div className="mt-3">
<label htmlFor={`${uid}-email`} className="block text-sm font-medium">
Email
</label>
<input
id={`${uid}-email`}
type="email"
required
autoComplete="email"
value={email}
onChange={(e) => setEmail(e.target.value)}
aria-describedby={`${uid}-email-why`}
placeholder="you@example.com"
className={`mt-1.5 ${INPUT_CLASS}`}
/>
{/* The field's own reason — cheaper than any trust badge. */}
<p
id={`${uid}-email-why`}
className="mt-1.5 flex items-start gap-1.5 text-xs text-muted-foreground"
>
<Mail aria-hidden className="mt-0.5 h-3 w-3 shrink-0" />
For your receipt and delivery updates. We will not add you to
anything, and there is a link at the end to create an account
if you decide you want one.
</p>
</div>
</fieldset>
<fieldset className="border-0 p-0">
<legend className="text-sm font-semibold">Delivery address</legend>
{/* One field per line, every one with a real autocomplete token. */}
<div className="mt-3 space-y-3">
<div>
<label htmlFor={`${uid}-given`} className="block text-sm font-medium">
First name
</label>
<input
id={`${uid}-given`}
autoComplete="given-name"
required
className={`mt-1.5 ${INPUT_CLASS}`}
/>
</div>
<div>
<label htmlFor={`${uid}-family`} className="block text-sm font-medium">
Last name
</label>
<input
id={`${uid}-family`}
autoComplete="family-name"
required
className={`mt-1.5 ${INPUT_CLASS}`}
/>
</div>
<div>
<label htmlFor={`${uid}-line1`} className="block text-sm font-medium">
Address
</label>
<input
id={`${uid}-line1`}
autoComplete="address-line1"
required
className={`mt-1.5 ${INPUT_CLASS}`}
/>
</div>
<div>
<label htmlFor={`${uid}-line2`} className="block text-sm font-medium">
Apartment, floor, company
<span className="ms-2 text-xs font-normal text-muted-foreground">
Optional
</span>
</label>
<input
id={`${uid}-line2`}
autoComplete="address-line2"
className={`mt-1.5 ${INPUT_CLASS}`}
/>
</div>
<div className="grid gap-3 sm:grid-cols-2">
<div>
<label htmlFor={`${uid}-city`} className="block text-sm font-medium">
City
</label>
<input
id={`${uid}-city`}
autoComplete="address-level2"
required
className={`mt-1.5 ${INPUT_CLASS}`}
/>
</div>
<div>
<label htmlFor={`${uid}-postal`} className="block text-sm font-medium">
Postcode
</label>
<input
id={`${uid}-postal`}
autoComplete="postal-code"
required
className={`mt-1.5 ${INPUT_CLASS}`}
/>
</div>
</div>
<div>
<label htmlFor={`${uid}-country`} className="block text-sm font-medium">
Country
</label>
<select
id={`${uid}-country`}
autoComplete="country-name"
className={`mt-1.5 ${INPUT_CLASS}`}
>
<option>Netherlands</option>
<option>United Kingdom</option>
<option>Germany</option>
<option>India</option>
</select>
</div>
<div>
<label htmlFor={`${uid}-tel`} className="block text-sm font-medium">
Phone
<span className="ms-2 text-xs font-normal text-muted-foreground">
For the driver only
</span>
</label>
<input
id={`${uid}-tel`}
type="tel"
autoComplete="tel"
className={`mt-1.5 ${INPUT_CLASS}`}
/>
</div>
</div>
</fieldset>
<fieldset className="border-0 p-0">
<legend className="text-sm font-semibold">Payment</legend>
<div className="mt-3 space-y-3">
<div>
<label htmlFor={`${uid}-card`} className="block text-sm font-medium">
Card number
</label>
<input
id={`${uid}-card`}
inputMode="numeric"
autoComplete="cc-number"
required
placeholder="4242 4242 4242 4242"
className={`mt-1.5 ${INPUT_CLASS}`}
/>
</div>
<div className="grid gap-3 sm:grid-cols-2">
<div>
<label htmlFor={`${uid}-exp`} className="block text-sm font-medium">
Expiry
</label>
<input
id={`${uid}-exp`}
inputMode="numeric"
autoComplete="cc-exp"
required
placeholder="MM / YY"
className={`mt-1.5 ${INPUT_CLASS}`}
/>
</div>
<div>
<label htmlFor={`${uid}-cvc`} className="block text-sm font-medium">
Security code
</label>
<input
id={`${uid}-cvc`}
inputMode="numeric"
autoComplete="cc-csc"
required
placeholder="123"
className={`mt-1.5 ${INPUT_CLASS}`}
/>
</div>
</div>
</div>
</fieldset>
{/* Asked at the end, where it costs a checkbox. */}
<div className="rounded-xl border border-border bg-card p-4">
<div className="flex items-start gap-2.5">
<input
type="checkbox"
id={`${uid}-account`}
checked={wantsAccount}
onChange={(e) => setWantsAccount(e.target.checked)}
className="mt-0.5 h-4 w-4 shrink-0 rounded border-border accent-primary"
/>
<div className="min-w-0 flex-1">
<label
htmlFor={`${uid}-account`}
className="flex items-center gap-1.5 text-sm font-medium"
>
<UserPlus aria-hidden className="h-4 w-4 text-primary" />
Save these details for next time
</label>
<p className="mt-0.5 text-xs text-muted-foreground">
Everything above is already typed. This adds a password and
nothing else — the order goes through either way.
</p>
{wantsAccount ? (
<div className="mt-3">
<label htmlFor={`${uid}-password`} className="block text-sm font-medium">
Choose a password
</label>
<input
id={`${uid}-password`}
type="password"
autoComplete="new-password"
aria-describedby={`${uid}-password-rule`}
className={`mt-1.5 ${INPUT_CLASS}`}
/>
<p id={`${uid}-password-rule`} className="mt-1 text-xs text-muted-foreground">
At least 10 characters. Nothing else is required.
</p>
</div>
) : null}
</div>
</div>
</div>
</form>
<aside className="hidden min-w-0 lg:sticky lg:top-6 lg:block lg:self-start">
<div className="rounded-xl border border-border bg-card p-4">
<h3 data-stress-ignore className="text-sm font-semibold">
Order summary
</h3>
<ul className="mt-3 space-y-2.5">
{lines.map((line) => (
<li key={line.id} className="flex justify-between gap-3 text-sm">
<span className="min-w-0 flex-1">
<span className="block truncate">{line.name}</span>
<span className="block truncate text-xs text-muted-foreground">
{line.variant} · ×{line.quantity}
</span>
</span>
<span className="shrink-0 font-medium">
{money(line.price * line.quantity)}
</span>
</li>
))}
</ul>
<dl className="mt-4 space-y-2 border-t border-border pt-3 text-sm">
<div className="flex justify-between gap-3">
<dt className="min-w-0 break-words text-muted-foreground">Goods</dt>
<dd className="shrink-0">{money(goods)}</dd>
</div>
<div className="flex justify-between gap-3">
<dt className="min-w-0 break-words text-muted-foreground">Delivery</dt>
<dd className="shrink-0">{money(delivery)}</dd>
</div>
<div className="flex justify-between gap-3 border-t border-border pt-2 text-base font-bold">
<dt className="min-w-0 break-words">Total</dt>
<dd className="shrink-0">{money(total)}</dd>
</div>
</dl>
</div>
{/* Outside the <form> in the DOM, so it needs `form=` to submit
it. A summary rail that renders a dead button is the classic
version of this layout. */}
<button
type="submit"
form={`${uid}-form`}
className="mt-3 inline-flex w-full items-center justify-center gap-1.5 rounded-lg bg-primary px-4 py-2.5 text-sm font-semibold text-primary-foreground transition-opacity hover:opacity-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
>
<Lock aria-hidden className="h-4 w-4" />
Pay {money(total)}
</button>
<p className="mt-3 flex items-start gap-1.5 text-xs text-muted-foreground">
<ShieldCheck aria-hidden className="mt-0.5 h-3 w-3 shrink-0" />
Card details go straight to the payment provider. Nothing on this
page ever holds them.
</p>
</aside>
</div>
</div>
</section>
)
}
bg-card, text-muted-foreground) — it inherits your theme instead of overriding it.Drop it at components/guest-checkout-form.tsx and import it where you need the section:
import { GuestCheckoutForm } from '@/components/guest-checkout-form'2 of this block’s props are simple enough to drive from here. Change them and the block below re-renders — it is the same component whose source is above, not a mock of it. Everything else it accepts is in the table underneath.
Read out of the component’s own type and signature, so this cannot drift from the source below. Every prop has a default — the component renders standalone before you pass it anything.
| Prop | Type | Default |
|---|---|---|
lines | CheckoutLine[] | DEFAULT_LINES |
delivery | number | 12 |
currency | string | '£' |
className | string | '' |
The same block rendered once to markup, wrapped as a file your framework compiles. Tailwind classes are framework-agnostic, so the design transfers intact — the behaviour does not.
This block is interactive. The markup below is its initial state with the event handlers stripped — you will need to re-wire the behaviour in your framework.
<!--
Guest Checkout — markup from the Hoverlab catalog.
This is the block rendered once to HTML and wrapped as a component
file. It is not a port of the React source: the Tailwind classes carry
the design, which is the part that took the work, and they are the same
in every framework.
This block is interactive in React and the handlers are NOT here.
Buttons, toggles and menus render in their initial state and do
nothing until you wire them up.
-->
<section class="bg-background px-4 py-10 sm:px-6 ">
<div class="mx-auto max-w-4xl">
<h2 class="text-xl font-bold tracking-tight">Checkout</h2>
<p class="mt-1 text-sm text-muted-foreground">Checking out as a guest. <a href="#" class="font-medium text-primary underline-offset-4 hover:underline">Sign in instead</a> to use saved addresses and cards.</p>
<div class="mt-5 flex items-center justify-between gap-3 rounded-xl border border-border bg-card p-4 lg:hidden">
<span class="text-sm text-muted-foreground">3 items</span>
<span class="text-base font-bold">£722.00</span>
</div>
<div class="mt-5 grid gap-8 lg:grid-cols-[minmax(0,1fr)_18rem]">
<form id="_R_0_-form" class="space-y-8">
<fieldset class="border-0 p-0">
<legend class="text-sm font-semibold">Contact</legend>
<div class="mt-3">
<label for="_R_0_-email" class="block text-sm font-medium">Email</label>
<input id="_R_0_-email" type="email" required="" autoComplete="email" aria-describedby="_R_0_-email-why" placeholder="you@example.com" class="mt-1.5 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm outline-none transition-colors focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-ring" value="" />
<p id="_R_0_-email-why" class="mt-1.5 flex items-start gap-1.5 text-xs text-muted-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-mail mt-0.5 h-3 w-3 shrink-0" aria-hidden="true"><path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"></path><rect x="2" y="4" width="20" height="16" rx="2"></rect></svg>For your receipt and delivery updates. We will not add you to anything, and there is a link at the end to create an account if you decide you want one.</p>
</div>
</fieldset>
<fieldset class="border-0 p-0">
<legend class="text-sm font-semibold">Delivery address</legend>
<div class="mt-3 space-y-3">
<div>
<label for="_R_0_-given" class="block text-sm font-medium">First name</label>
<input id="_R_0_-given" autoComplete="given-name" required="" class="mt-1.5 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm outline-none transition-colors focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-ring" />
</div>
<div>
<label for="_R_0_-family" class="block text-sm font-medium">Last name</label>
<input id="_R_0_-family" autoComplete="family-name" required="" class="mt-1.5 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm outline-none transition-colors focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-ring" />
</div>
<div>
<label for="_R_0_-line1" class="block text-sm font-medium">Address</label>
<input id="_R_0_-line1" autoComplete="address-line1" required="" class="mt-1.5 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm outline-none transition-colors focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-ring" />
</div>
<div>
<label for="_R_0_-line2" class="block text-sm font-medium">Apartment, floor, company<span class="ms-2 text-xs font-normal text-muted-foreground">Optional</span></label>
<input id="_R_0_-line2" autoComplete="address-line2" class="mt-1.5 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm outline-none transition-colors focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-ring" />
</div>
<div class="grid gap-3 sm:grid-cols-2">
<div>
<label for="_R_0_-city" class="block text-sm font-medium">City</label>
<input id="_R_0_-city" autoComplete="address-level2" required="" class="mt-1.5 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm outline-none transition-colors focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-ring" />
</div>
<div>
<label for="_R_0_-postal" class="block text-sm font-medium">Postcode</label>
<input id="_R_0_-postal" autoComplete="postal-code" required="" class="mt-1.5 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm outline-none transition-colors focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-ring" />
</div>
</div>
<div>
<label for="_R_0_-country" class="block text-sm font-medium">Country</label>
<select id="_R_0_-country" autoComplete="country-name" class="mt-1.5 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm outline-none transition-colors focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-ring">
<option>Netherlands</option>
<option>United Kingdom</option>
<option>Germany</option>
<option>India</option>
</select>
</div>
<div>
<label for="_R_0_-tel" class="block text-sm font-medium">Phone<span class="ms-2 text-xs font-normal text-muted-foreground">For the driver only</span></label>
<input id="_R_0_-tel" type="tel" autoComplete="tel" class="mt-1.5 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm outline-none transition-colors focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-ring" />
</div>
</div>
</fieldset>
<fieldset class="border-0 p-0">
<legend class="text-sm font-semibold">Payment</legend>
<div class="mt-3 space-y-3">
<div>
<label for="_R_0_-card" class="block text-sm font-medium">Card number</label>
<input id="_R_0_-card" inputMode="numeric" autoComplete="cc-number" required="" placeholder="4242 4242 4242 4242" class="mt-1.5 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm outline-none transition-colors focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-ring" />
</div>
<div class="grid gap-3 sm:grid-cols-2">
<div>
<label for="_R_0_-exp" class="block text-sm font-medium">Expiry</label>
<input id="_R_0_-exp" inputMode="numeric" autoComplete="cc-exp" required="" placeholder="MM / YY" class="mt-1.5 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm outline-none transition-colors focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-ring" />
</div>
<div>
<label for="_R_0_-cvc" class="block text-sm font-medium">Security code</label>
<input id="_R_0_-cvc" inputMode="numeric" autoComplete="cc-csc" required="" placeholder="123" class="mt-1.5 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm outline-none transition-colors focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-ring" />
</div>
</div>
</div>
</fieldset>
<div class="rounded-xl border border-border bg-card p-4">
<div class="flex items-start gap-2.5">
<input type="checkbox" id="_R_0_-account" class="mt-0.5 h-4 w-4 shrink-0 rounded border-border accent-primary" />
<div class="min-w-0 flex-1">
<label for="_R_0_-account" class="flex items-center gap-1.5 text-sm font-medium"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-user-plus h-4 w-4 text-primary" aria-hidden="true"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><line x1="19" x2="19" y1="8" y2="14"></line><line x1="22" x2="16" y1="11" y2="11"></line></svg>Save these details for next time</label>
<p class="mt-0.5 text-xs text-muted-foreground">Everything above is already typed. This adds a password and nothing else — the order goes through either way.</p>
</div>
</div>
</div>
</form>
<aside class="hidden min-w-0 lg:sticky lg:top-6 lg:block lg:self-start">
<div class="rounded-xl border border-border bg-card p-4">
<h3 data-stress-ignore="true" class="text-sm font-semibold">Order summary</h3>
<ul class="mt-3 space-y-2.5">
<li class="flex justify-between gap-3 text-sm">
<span class="min-w-0 flex-1">
<span class="block truncate">Meridian task chair</span>
<span class="block truncate text-xs text-muted-foreground">Graphite mesh · ×1</span>
</span>
<span class="shrink-0 font-medium">£420.00</span>
</li>
<li class="flex justify-between gap-3 text-sm">
<span class="min-w-0 flex-1">
<span class="block truncate">Halo task lamp</span>
<span class="block truncate text-xs text-muted-foreground">Brushed steel · ×2</span>
</span>
<span class="shrink-0 font-medium">£290.00</span>
</li>
</ul>
<dl class="mt-4 space-y-2 border-t border-border pt-3 text-sm">
<div class="flex justify-between gap-3">
<dt class="min-w-0 break-words text-muted-foreground">Goods</dt>
<dd class="shrink-0">£710.00</dd>
</div>
<div class="flex justify-between gap-3">
<dt class="min-w-0 break-words text-muted-foreground">Delivery</dt>
<dd class="shrink-0">£12.00</dd>
</div>
<div class="flex justify-between gap-3 border-t border-border pt-2 text-base font-bold">
<dt class="min-w-0 break-words">Total</dt>
<dd class="shrink-0">£722.00</dd>
</div>
</dl>
</div>
<button type="submit" form="_R_0_-form" class="mt-3 inline-flex w-full items-center justify-center gap-1.5 rounded-lg bg-primary px-4 py-2.5 text-sm font-semibold text-primary-foreground transition-opacity hover:opacity-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-lock h-4 w-4" aria-hidden="true"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>Pay £722.00</button>
<p class="mt-3 flex items-start gap-1.5 text-xs text-muted-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-shield-check mt-0.5 h-3 w-3 shrink-0" aria-hidden="true"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"></path><path d="m9 12 2 2 4-4"></path></svg>Card details go straight to the payment provider. Nothing on this page ever holds them.</p>
</aside>
</div>
</div>
</section>
What each framework gets across the whole catalog — effects convert properly; this rung is markup.
The component, its props, the design tokens it expects and the command that installs it — as one prompt. Paste it into Claude, Cursor, v0 or ChatGPT and what they build around it will match the rest of the catalog instead of inventing its own system.
All of them free to read, copy and install — no account, no locked tiles, no watermarked preview. The whole catalog is open, and so are the API and the CLI.
Browse Cart & CheckoutCopying the code is free. Putting it in client work or a paid product is what Pro is for — the licence, not the access.
A basket panel with the dialog mechanics usually missing: focus trap, focus return, Escape to close and a background scroll lock.
Quantity steppers and remove-with-undo, with every total derived rather than stored so the basket can never disagree with itself.
The full autocomplete token set that lets a browser fill eight fields in one tap, plus address labels that follow the selected country.
Subtotal, discount, delivery and tax all derived from the lines, with the free-delivery nudge driven by the same threshold as the charge.
The wallet buttons above the form, and what they do to it: the address a wallet returns is shown and stays editable, and the row disappears entirely when no wallet is actually available.
The gifting step, placed in the cart where it is a choice rather than at checkout where it is friction.
The only checkout where the buyer is not the recipient - live preview, a send date with a stated timezone, and the confirm-the-address field that prevents the expensive typo.
The offer popup with four rules applied: triggered by intent, a decline button of equal weight, a dismissal that is remembered, and the terms on its face.