Order History 2
Subscription control card: the plan, price and next ship date set as a live scoreboard, with frequency, skip and pause one tap away, so a customer adjusts instead of cancelling.
Use it in a prompt
Use checkout/order-history-2 from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/checkout/order-history-2.tsx. - Import it and pass your copy and images (Props tab):
import { OrderHistory2 } from "@/components/funneldna/checkout/order-history-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/checkout/order-history-2/component.tsx 338 lines
// layout: fact-scoreboard
// Subscription control card: the plan, price and next ship date set as a live scoreboard, with frequency, skip and pause one tap away, so a customer adjusts instead of cancelling.
import * as React from "react";
import { CalendarDays, Check, Pause, SkipForward } from "lucide-react";
import { FX_HOST, Texture } from "../fx/fx";
import topo from "../fx/textures/topo";
export type SubscriptionAction =
| { type: "frequency"; weeks: number; nextShipDate: string }
| { type: "skip"; date: string }
| { type: "pause" }
| { type: "cancel" };
export type OrderHistory2Copy = {
amountLabel: string;
amountNote: string;
dateLabel: string;
/** Shown after the weekday when the next delivery is skipped. Placeholder: {date}. */
skippedNote: string;
upcomingLabel: string;
controlsTitle: string;
/** One-sentence lines; the last one is set as the punch line. */
punch: string[];
frequencyLabel: string;
weekUnit: string;
weeksUnit: string;
/** Date line under each option. Placeholder: {date}. */
optionDate: string;
/** Accessible option label. Placeholders: {count}, {unit}, {date}. */
optionAria: string;
/** Primary button label. Placeholders: {count}, {unit}. */
save: string;
saveNote: string;
skip: string;
skippedLabel: string;
pause: string;
cancel: string;
/** Shown when lastShippedOn is not a valid date. */
invalidDate: string;
};
export type OrderHistory2Props = {
planName?: string;
/** Blend, grind and size line under the plan name. */
planDetail?: string;
/** Slot "product": the bag on a transparent background. */
productImage?: string;
productImageAlt?: string;
/** Price per delivery, as display text. */
amount?: string;
/** ISO date (YYYY-MM-DD) the last bag shipped; every ship date counts from it. */
lastShippedOn?: string;
/** The customer's current delivery frequency in weeks. */
frequencyWeeks?: number;
/** Frequencies offered in the segmented control, in weeks. */
frequencies?: number[];
/** True when the next delivery is already skipped: Skip is disabled and dates move on one cycle. */
skipped?: boolean;
/** BCP 47 locale for dates. */
locale?: string;
copy?: Partial<OrderHistory2Copy>;
onAction?: (action: SubscriptionAction) => void;
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
const DEFAULT_COPY: OrderHistory2Copy = {
amountLabel: "You pay per bag",
amountNote: "Charged the day it ships",
dateLabel: "Your next bag ships",
skippedNote: "{date} skipped",
upcomingLabel: "Then",
controlsTitle: "Change it any time.",
punch: ["Tap a new rhythm and your ship date moves with it.", "No emails. No waiting.", "Done."],
frequencyLabel: "Send a fresh bag every",
weekUnit: "week",
weeksUnit: "weeks",
optionDate: "Ships {date}",
optionAria: "Every {count} {unit}, next bag ships {date}",
save: "Ship every {count} {unit}",
saveNote: "Applies from your next bag.",
skip: "Skip next delivery",
skippedLabel: "Next delivery skipped",
pause: "Pause deliveries",
cancel: "Cancel subscription",
invalidDate: "To be scheduled",
};
const WEEK_MS = 7 * 24 * 60 * 60 * 1000;
export function OrderHistory2(props: OrderHistory2Props) {
const {
planName = "Grindhouse Coffee Club",
planDetail = "House Blend · Whole bean · 12 oz bag",
productImage,
productImageAlt = "",
amount = "$18.00",
lastShippedOn = "2026-11-11",
frequencyWeeks = 4,
frequencies = [2, 4, 6],
skipped = false,
locale = "en-US",
copy,
onAction,
state = "default",
className,
} = props;
const c: OrderHistory2Copy = { ...DEFAULT_COPY, ...copy };
const uid = React.useId();
const [weeks, setWeeks] = React.useState(frequencyWeeks);
React.useEffect(() => {
setWeeks(frequencyWeeks);
}, [frequencyWeeks]);
const isSkipped = skipped || state === "disabled";
const cycles = isSkipped ? 2 : 1;
const base = parseISODate(lastShippedOn);
const skipMs = base + weeks * WEEK_MS;
const nextMs = base + weeks * WEEK_MS * cycles;
const fmt = React.useMemo(() => dateFormats(locale), [locale]);
const short = (ms: number) => (Number.isFinite(ms) ? fmt.short.format(new Date(ms)) : c.invalidDate);
const weekday = Number.isFinite(nextMs) ? fmt.weekday.format(new Date(nextMs)) : "";
const unit = (n: number) => (n === 1 ? c.weekUnit : c.weeksUnit);
const nextIso = toISODate(nextMs);
const upcoming = [1, 2].map((i) => nextMs + weeks * WEEK_MS * i);
const lastPunch = c.punch.length - 1;
const ctaState = state === "hover" ? " is-hover" : state === "active" ? " is-active" : "";
const segStyle = { "--oh2-n": String(Math.max(frequencies.length, 1)) } as React.CSSProperties;
return (
<section className={"cf-oh2" + (className ? " " + className : "")} aria-labelledby={uid + "-title"}>
<style>{CSS}</style>
<div className="cf-oh2__shell">
<div className="cf-oh2__plan" style={FX_HOST}>
<Texture src={topo} tone="band-ink" />
<div className="cf-oh2__inner">
<h2 id={uid + "-title"} className="cf-oh2__title">
{planName}
</h2>
{planDetail ? <p className="cf-oh2__detail">{planDetail}</p> : null}
<div className="cf-oh2__board">
{productImage ? (
<div className="cf-oh2__tile cf-oh2__tile--bag">
<img className="cf-oh2__bag" src={productImage} alt={productImageAlt} width={480} height={600} />
</div>
) : null}
<div className="cf-oh2__tile">
<p className="cf-oh2__label">{c.amountLabel}</p>
<p className="cf-oh2__num">{amount}</p>
{c.amountNote ? <p className="cf-oh2__note">{c.amountNote}</p> : null}
</div>
<div className="cf-oh2__tile" aria-live="polite">
<p className="cf-oh2__label">{c.dateLabel}</p>
<p key={nextIso} className="cf-oh2__num cf-oh2__swap">
{short(nextMs)}
</p>
<p className="cf-oh2__note">
{weekday}
{isSkipped ? (weekday ? " · " : "") + fill(c.skippedNote, { date: short(skipMs) }) : ""}
</p>
</div>
<div className="cf-oh2__tile cf-oh2__tile--wide">
<p className="cf-oh2__label">
<CalendarDays size={18} strokeWidth={2.5} aria-hidden="true" />
{c.upcomingLabel}
</p>
<ul className="cf-oh2__chips">
{upcoming.map((ms, i) => (
<li key={i}>{short(ms)}</li>
))}
</ul>
</div>
</div>
</div>
</div>
<div className="cf-oh2__ctl">
<h3 className="cf-oh2__h3">{c.controlsTitle}</h3>
<div className="cf-oh2__punch">
{c.punch.map((line, i) => (
<p key={i} className={"cf-oh2__line" + (i === lastPunch && i > 0 ? " is-punch" : "")}>
{line}
</p>
))}
</div>
<p id={uid + "-freq"} className="cf-oh2__seglabel">
{c.frequencyLabel}
</p>
<div className="cf-oh2__seg" role="radiogroup" aria-labelledby={uid + "-freq"} style={segStyle}>
{frequencies.map((w) => {
const on = w === weeks;
const optMs = base + w * WEEK_MS * cycles;
return (
<label key={w} className="cf-oh2__opt" data-on={on ? "true" : "false"}>
<input
type="radio"
name={uid + "-f"}
value={w}
checked={on}
onChange={() => setWeeks(w)}
aria-label={fill(c.optionAria, { count: w, unit: unit(w), date: short(optMs) })}
/>
{on ? (
<span className="cf-oh2__tick" aria-hidden="true">
<Check size={16} strokeWidth={3} />
</span>
) : null}
<span className="cf-oh2__optnum" aria-hidden="true">{w}</span>
<span className="cf-oh2__optunit" aria-hidden="true">{unit(w)}</span>
<span className="cf-oh2__optdate" aria-hidden="true">{fill(c.optionDate, { date: short(optMs) })}</span>
</label>
);
})}
</div>
<button
type="button"
className={"cf-oh2__cta" + ctaState}
onClick={() => onAction?.({ type: "frequency", weeks, nextShipDate: nextIso })}
>
{fill(c.save, { count: weeks, unit: unit(weeks) })}
</button>
{c.saveNote ? <p className="cf-oh2__savenote">{c.saveNote}</p> : null}
<div className="cf-oh2__more">
<button
type="button"
className="cf-oh2__btn2"
disabled={isSkipped}
onClick={() => onAction?.({ type: "skip", date: toISODate(skipMs) })}
>
<SkipForward size={20} strokeWidth={2.5} aria-hidden="true" />
{isSkipped ? c.skippedLabel : c.skip}
</button>
<button type="button" className="cf-oh2__btn2" onClick={() => onAction?.({ type: "pause" })}>
<Pause size={20} strokeWidth={2.5} aria-hidden="true" />
{c.pause}
</button>
</div>
<button type="button" className="cf-oh2__cancel" onClick={() => onAction?.({ type: "cancel" })}>
{c.cancel}
</button>
</div>
</div>
</section>
);
}
export default OrderHistory2;
function fill(template: string, vars: Record<string, string | number>) {
return Object.keys(vars).reduce((s, k) => s.split("{" + k + "}").join(String(vars[k])), template);
}
function parseISODate(iso: string) {
const parts = String(iso || "").split("-").map(Number);
if (parts.length < 3 || parts.some((n) => !Number.isFinite(n))) return NaN;
return Date.UTC(parts[0], parts[1] - 1, parts[2]);
}
function toISODate(ms: number) {
return Number.isFinite(ms) ? new Date(ms).toISOString().slice(0, 10) : "";
}
function dateFormats(locale: string) {
try {
return {
short: new Intl.DateTimeFormat(locale, { month: "short", day: "numeric", timeZone: "UTC" }),
weekday: new Intl.DateTimeFormat(locale, { weekday: "long", timeZone: "UTC" }),
};
} catch {
return {
short: new Intl.DateTimeFormat("en-US", { month: "short", day: "numeric", timeZone: "UTC" }),
weekday: new Intl.DateTimeFormat("en-US", { weekday: "long", timeZone: "UTC" }),
};
}
}
const CSS = `
.cf-oh2{--oh2-shadow:var(--shadow,oklch(0.22 0.03 260));background:var(--surface);color:var(--ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
.cf-oh2 *,.cf-oh2 *::before,.cf-oh2 *::after{box-sizing:border-box}
.cf-oh2__shell{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);align-items:stretch;background:var(--card);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--oh2-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--oh2-shadow) l c h / .32)));overflow:hidden}
.cf-oh2__plan{position:relative;min-width:0;background:var(--band);color:var(--band-ink);padding:clamp(24px,3.6vw,48px)}
.cf-oh2__inner{position:relative;z-index:1}
.cf-oh2__title{margin:0 0 14px;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance;color:var(--band-ink)}
.cf-oh2__detail{margin:0 0 32px;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;text-wrap:pretty;color:color-mix(in oklch,var(--band-ink) 84%,var(--band))}
.cf-oh2__board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cf-oh2__tile{min-width:0;container-type:inline-size;padding:20px;border-radius:var(--radius,12px);background:oklch(from var(--band-ink) l c h / .08);border:1px solid oklch(from var(--band-ink) l c h / .14);animation:cf-oh2-in .45s cubic-bezier(.2,.7,.2,1) both}
.cf-oh2__tile:nth-child(2){animation-delay:.07s}
.cf-oh2__tile:nth-child(3){animation-delay:.14s}
.cf-oh2__tile:nth-child(4){animation-delay:.21s}
.cf-oh2__tile--bag{grid-row:span 2;display:flex;align-items:center;justify-content:center;padding:16px}
.cf-oh2__bag{display:block;width:100%;max-width:240px;height:auto;aspect-ratio:4/5;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 2px 3px oklch(from var(--oh2-shadow) calc(l - .06) c h / .55)) drop-shadow(0 14px 18px oklch(from var(--oh2-shadow) calc(l - .06) c h / .45))}
.cf-oh2__tile--wide{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.cf-oh2__label{margin:0 0 12px;font-size:.9375rem;line-height:1.4;font-weight:600;color:color-mix(in oklch,var(--band-ink) 84%,var(--band))}
.cf-oh2__tile--wide .cf-oh2__label{margin:0}
.cf-oh2__label svg{display:inline-block;vertical-align:-.2em;margin-inline-end:.4em}
.cf-oh2__num{margin:0;font-family:var(--font-display);font-weight:800;font-size:clamp(2.5rem,24cqi,3.75rem);line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--band-ink)}
.cf-oh2__swap{animation:cf-oh2-in .45s cubic-bezier(.2,.7,.2,1) both}
.cf-oh2__note{margin:12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:600;text-wrap:pretty;color:color-mix(in oklch,var(--band-ink) 84%,var(--band))}
.cf-oh2__chips{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.cf-oh2__chips li{display:inline-flex;align-items:center;min-height:30px;padding:4px 12px;border-radius:999px;background:oklch(from var(--band-ink) l c h / .12);color:var(--band-ink);font-size:.875rem;line-height:1.2;font-weight:800;font-variant-numeric:tabular-nums}
.cf-oh2__ctl{display:flex;flex-direction:column;min-width:0;padding:clamp(24px,3.6vw,48px);background:var(--card);color:var(--ink)}
.cf-oh2__h3{margin:0 0 12px;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-.01em;text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-wrap:balance;color:var(--ink)}
.cf-oh2__punch{margin:0 0 24px}
.cf-oh2__line{margin:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty;color:var(--muted)}
.cf-oh2__line.is-punch{margin-top:8px;font-family:var(--font-display);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;color:var(--ink)}
.cf-oh2__seglabel{margin:0 0 12px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.3;font-weight:700;color:var(--label-ink,var(--ink))}
.cf-oh2__seg{display:grid;grid-template-columns:repeat(var(--oh2-n,3),minmax(0,1fr));gap:6px;margin:0 0 24px;padding:6px;border-radius:calc(var(--radius,12px) + 4px);background:color-mix(in oklch,var(--ink) 5%,var(--card))}
.cf-oh2__opt{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:16px 8px 14px;border-radius:var(--radius,12px);text-align:center;cursor:pointer;transition:background .16s ease,box-shadow .16s ease}
.cf-oh2__opt input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.cf-oh2__opt:hover{background:color-mix(in oklch,var(--ink) 9%,var(--card))}
.cf-oh2__opt[data-on="true"]{background:color-mix(in oklch,var(--accent) 10%,var(--card));box-shadow:inset 0 0 0 2px var(--accent),var(--shadow-sm,0 1px 2px oklch(from var(--oh2-shadow) l c h / .2))}
.cf-oh2__opt:has(input:focus-visible){outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .5);outline-offset:2px}
.cf-oh2__tick{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card));animation:cf-oh2-pop .3s ease both}
.cf-oh2__optnum{font-family:var(--font-display);font-weight:800;font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--ink)}
.cf-oh2__opt[data-on="true"] .cf-oh2__optnum{color:var(--accent)}
.cf-oh2__optunit{font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted)}
.cf-oh2__optdate{font-size:.875rem;line-height:1.2;font-weight:800;color:var(--ink);text-wrap:balance}
.cf-oh2__cta{--oh2-b:var(--button-bg,var(--cta));display:flex;align-items:center;justify-content:center;width:100%;min-height:64px;margin:0;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--oh2-b) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .02) c h));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-wrap:balance;text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--oh2-b) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--oh2-b) calc(l - .16) c h),0 1px 2px oklch(from var(--oh2-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--oh2-shadow) l c h / .45));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-oh2__cta:hover,.cf-oh2__cta.is-hover{background:linear-gradient(oklch(from var(--oh2-b) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .07) c h));box-shadow:inset 0 1px 0 oklch(from var(--oh2-b) calc(l + .1) c h / .7),inset 0 -3px 0 oklch(from var(--oh2-b) calc(l - .2) c h),0 1px 2px oklch(from var(--oh2-shadow) l c h / .32),0 12px 20px -8px oklch(from var(--oh2-shadow) l c h / .5)}
.cf-oh2__cta:active,.cf-oh2__cta.is-active{transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--oh2-b) calc(l - .2) c h / .5),inset 0 -2px 0 oklch(from var(--oh2-b) calc(l - .16) c h),0 1px 2px oklch(from var(--oh2-shadow) l c h / .3)}
.cf-oh2__cta:focus-visible{outline:3px solid oklch(from var(--accent) l c h / .55);outline-offset:3px}
.cf-oh2__savenote{margin:12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:500;text-align:center;text-wrap:pretty;color:var(--muted)}
.cf-oh2__more{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.cf-oh2__btn2{flex:1 1 15rem;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:56px;margin:0;padding:0 20px;border:1px solid var(--button-2-border,transparent);border-radius:var(--button-radius,var(--radius,12px));background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.15;text-align:center;box-shadow:var(--button-2-shadow,var(--shadow-sm));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-oh2__btn2 svg{flex:0 0 auto}
.cf-oh2__btn2:hover:not(:disabled){background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - .04) c h)}
.cf-oh2__btn2:active:not(:disabled){transform:translateY(1px);box-shadow:none}
.cf-oh2__btn2:focus-visible{outline:3px solid oklch(from var(--accent) l c h / .55);outline-offset:3px}
.cf-oh2__btn2:disabled{background:color-mix(in oklch,var(--ink) 4%,var(--card));color:var(--muted);border-color:oklch(from var(--ink) l c h / .1);box-shadow:none;cursor:not-allowed}
.cf-oh2__cancel{align-self:center;min-height:44px;margin-top:20px;padding:8px 4px;border:0;background:none;color:var(--muted);font-family:var(--font-body);font-size:.9375rem;line-height:1.4;font-weight:600;text-decoration:underline;text-decoration-color:oklch(from var(--muted) l c h / .5);text-underline-offset:.18em;cursor:pointer}
.cf-oh2__cancel:hover{color:var(--ink);text-decoration-color:currentColor}
.cf-oh2__cancel:focus-visible{outline:3px solid oklch(from var(--accent) l c h / .55);outline-offset:2px;border-radius:6px}
@keyframes cf-oh2-in{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cf-oh2-pop{from{transform:scale(.9)}to{transform:scale(1)}}
@media (max-width:860px){.cf-oh2__shell{grid-template-columns:minmax(0,1fr)}}
@media (max-width:520px){.cf-oh2__board{grid-template-columns:minmax(0,1fr)}.cf-oh2__tile--bag{grid-row:auto}.cf-oh2__bag{max-width:200px}}
@media (prefers-reduced-motion:reduce){.cf-oh2__tile,.cf-oh2__swap,.cf-oh2__tick{animation:none}.cf-oh2__cta,.cf-oh2__btn2,.cf-oh2__opt{transition:none}.cf-oh2__cta:active,.cf-oh2__cta.is-active,.cf-oh2__btn2:active:not(:disabled){transform:none}}
`;
pieces/checkout/order-history-2/specimen.tsx 26 lines
import __studioImage86011cde from "../assets/e8764488a4bafdbb.webp";
import { OrderHistory2 } from "../order-history-2";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled"];
type SpecimenState = "default" | "hover" | "active" | "disabled";
export default function OrderHistory2Specimen({ state = "default" }: { state?: SpecimenState }) {
return (
<OrderHistory2
state={state}
planName="Grindhouse Coffee Club"
planDetail="House Blend · Whole bean · 12 oz bag"
productImage={slot(
"product",
__studioImage86011cde
)}
productImageAlt="Grindhouse Coffee Club House Blend coffee bag"
amount="$18.00"
lastShippedOn="2026-11-11"
frequencyWeeks={4}
frequencies={[2, 4, 6]}
/>
);
}
| Name | Type | Details |
|---|---|---|
planName OptionalOrderHistory2 |
string |
|
planDetail OptionalOrderHistory2 |
string |
|
productImage OptionalOrderHistory2 |
string |
|
productImageAlt OptionalOrderHistory2 |
string |
|
amount OptionalOrderHistory2 |
string |
|
lastShippedOn OptionalOrderHistory2 |
string |
|
frequencyWeeks OptionalOrderHistory2 |
number |
|
frequencies OptionalOrderHistory2 |
number[] |
|
skipped OptionalOrderHistory2 |
boolean |
|
locale OptionalOrderHistory2 |
string |
|
copy OptionalOrderHistory2 |
Partial<OrderHistory2Copy> |
|
onAction OptionalOrderHistory2 |
(action: SubscriptionAction) => void |
|
state OptionalOrderHistory2 |
"default" | "hover" | "active" | "disabled" |
|
className OptionalOrderHistory2 |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-border--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
product- The main product shot or cover (ebook, kit, bottle).
-
a57ca5c86a05001f.webp
image/webp · 108 KB
-
e8764488a4bafdbb.webp
image/webp · 83.9 KB