Checkout Header 3
Application and high-ticket checkout header: the logo and a mini Apply, Book, Join path on the left; on the right the coach's cut-out
Use it in a prompt
Use nav/checkout-header-3 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/nav/checkout-header-3.tsx. - Import it and pass your copy and images (Props tab):
import { CheckoutHeader3 } from "@/components/funneldna/nav/checkout-header-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/nav/checkout-header-3/component.tsx 389 lines
// layout: presenter-cutout
// Application and high-ticket checkout header: the logo and a mini Apply, Book, Join path on the left; on the right the coach's cut-out
// headshot beside one promise in their own voice, and a Help disclosure with tap-to-call. No exit links, so the visitor stays in the flow.
import * as React from 'react';
import { Check, Clock, Headset, Mail, Phone, X } from 'lucide-react';
import { FX_HOST, Texture } from '../fx/fx';
import linen from '../fx/textures/linen';
export type CheckoutHeader3Props = {
/** Wordmark shown when there is no logo image; empty hides it */
brandName?: string;
/** Small line under the wordmark; empty hides it */
brandTagline?: string;
/** logo slot image: a transparent mark or wordmark */
logoImage?: string;
/** Alt text for the logo image; falls back to brandName */
logoAlt?: string;
/** Step names in order: the visitor's path in */
steps?: string[];
/** 0-based index of the step the visitor is on */
current?: number;
/** Accessible name of the step list */
progressLabel?: string;
/** Template with {current} and {total} */
stepCountLabel?: string;
/** Screen-reader suffix for finished steps */
completedLabel?: string;
/** Screen-reader suffix for the current step */
currentLabel?: string;
/** presenter-cutout slot image: the coach's head and shoulders on a transparent background */
coachImage?: string;
/** Alt text for the coach image; empty treats it as decorative beside the name */
coachImageAlt?: string;
/** One line in the coach's own voice; empty hides the coach block */
coachQuote?: string;
/** Coach's name under the line */
coachName?: string;
/** Coach's role, after the name */
coachRole?: string;
/** Help button label on wider screens */
helpLabel?: string;
/** Help button label on phones */
helpLabelShort?: string;
/** Question that opens the help panel */
helpTitle?: string;
/** One line under the panel question; empty hides it */
helpLead?: string;
/** Support number as shown; empty hides the call button. Digits and + form the tel: link */
phone?: string;
/** Call button label, with {phone} */
callLabel?: string;
/** Support address; empty hides the email row */
email?: string;
/** Accessible name of the email link, with {email} */
emailLabel?: string;
/** Opening hours as shown; empty hides the hours row */
hours?: string;
/** Hours line, with {hours} */
hoursLabel?: string;
/** Accessible label of the panel's close button */
closeLabel?: string;
/** Open the help panel on first render */
defaultHelpOpen?: boolean;
/** Called with the new open state whenever the help panel opens or closes */
onHelpToggle?: (open: boolean) => void;
/** Stick to the top of the viewport while the visitor scrolls */
sticky?: boolean;
/** Preview state: 'hover' shows the Help button hovered, 'active' shows the help panel open */
state?: 'default' | 'hover' | 'active';
className?: string;
};
export function CheckoutHeader3(props: CheckoutHeader3Props) {
const {
brandName = 'Cedar & Stone',
brandTagline = 'Mastermind',
logoImage,
logoAlt,
steps = ['Apply', 'Book', 'Join'],
current = 0,
progressLabel = 'Your path in',
stepCountLabel = 'Step {current} of {total}',
completedLabel = 'completed',
currentLabel = 'current step',
coachImage,
coachImageAlt = '',
coachQuote = '',
coachName = '',
coachRole = '',
helpLabel = 'Need help?',
helpLabelShort = 'Help',
helpTitle = 'Want to talk it through first?',
helpLead = 'Call or email us before you take the next step.',
phone = '',
callLabel = 'Call {phone}',
email = '',
emailLabel = 'Email {email}',
hours = '',
hoursLabel = 'Open {hours}',
closeLabel = 'Close help',
defaultHelpOpen = false,
onHelpToggle,
sticky = false,
state = 'default',
className,
} = props;
const uid = React.useId();
const panelId = uid + '-help';
const titleId = uid + '-title';
const forcedOpen = state === 'active';
const [open, setOpen] = React.useState(defaultHelpOpen || forcedOpen);
const wrapRef = React.useRef<HTMLDivElement>(null);
const triggerRef = React.useRef<HTMLButtonElement>(null);
const toggleRef = React.useRef(onHelpToggle);
React.useEffect(() => {
toggleRef.current = onHelpToggle;
});
React.useEffect(() => {
if (forcedOpen) setOpen(true);
}, [forcedOpen]);
const change = React.useCallback((next: boolean, returnFocus = false) => {
setOpen(next);
toggleRef.current?.(next);
if (returnFocus) triggerRef.current?.focus();
}, []);
React.useEffect(() => {
if (!open) return undefined;
const onKey = (event: KeyboardEvent) => {
if (event.key === 'Escape') {
event.preventDefault();
change(false, true);
}
};
const onDown = (event: PointerEvent) => {
if (wrapRef.current && !wrapRef.current.contains(event.target as Node)) change(false);
};
document.addEventListener('keydown', onKey);
document.addEventListener('pointerdown', onDown);
return () => {
document.removeEventListener('keydown', onKey);
document.removeEventListener('pointerdown', onDown);
};
}, [open, change]);
const total = steps.length;
const cur = total ? Math.min(Math.max(Math.round(current), 0), total - 1) : 0;
const count = fill(stepCountLabel, { current: String(cur + 1), total: String(total) });
const tel = Array.from(phone).filter((ch) => '0123456789+'.includes(ch)).join('');
const hasCoach = Boolean(coachQuote.trim());
const hasPanel = Boolean(tel || email || hours);
const fxStyle: React.CSSProperties = {
...(FX_HOST as React.CSSProperties),
position: 'absolute',
inset: 0,
overflow: 'hidden',
zIndex: 0,
pointerEvents: 'none',
};
const coach = { image: coachImage, alt: coachImageAlt, quote: coachQuote, name: coachName, role: coachRole };
return (
<header className={['cf-ch3', sticky ? 'is-sticky' : '', className].filter(Boolean).join(' ')}>
<style>{CSS}</style>
<div className='cf-ch3-fx' style={fxStyle} aria-hidden='true'>
<Texture src={linen} tone='ink' />
</div>
<div className='cf-ch3-in'>
<div className='cf-ch3-brand'>
{logoImage ? (
<img className='cf-ch3-logo' src={logoImage} alt={logoAlt || brandName || 'Logo'} />
) : brandName ? (
<span className='cf-ch3-word'>
<span className='cf-ch3-name'>{brandName}</span>
{brandTagline ? <span className='cf-ch3-tag'>{brandTagline}</span> : null}
</span>
) : null}
</div>
<span className='cf-ch3-rule' aria-hidden='true' />
{total > 0 ? (
<nav className='cf-ch3-path' aria-label={progressLabel + ': ' + count}>
<ol className='cf-ch3-steps'>
{steps.map((label, i) => {
const status = i < cur ? 'done' : i === cur ? 'current' : 'next';
return (
<li key={label + i} className={'cf-ch3-step is-' + status} aria-current={status === 'current' ? 'step' : undefined}>
<span className='cf-ch3-dot' aria-hidden='true'>
{status === 'done' ? <Check size={16} strokeWidth={3} /> : i + 1}
</span>
<span className='cf-ch3-label'>
{label}
{status !== 'next' ? (
<span className='cf-ch3-sr'>{', ' + (status === 'done' ? completedLabel : currentLabel)}</span>
) : null}
</span>
</li>
);
})}
</ol>
</nav>
) : null}
{hasCoach ? <CoachLine variant='bar' {...coach} /> : null}
{hasPanel ? (
<div className='cf-ch3-helpwrap' ref={wrapRef}>
<button
ref={triggerRef}
type='button'
className={'cf-ch3-help' + (state === 'hover' ? ' is-hover' : '')}
aria-expanded={open}
aria-controls={panelId}
onClick={() => change(!open)}
>
<Headset size={20} strokeWidth={2.5} aria-hidden='true' />
<span className='cf-ch3-hl'>{helpLabel}</span>
<span className='cf-ch3-hs'>{helpLabelShort}</span>
</button>
<div id={panelId} className='cf-ch3-panel' role='region' aria-labelledby={titleId} hidden={!open}>
<div className='cf-ch3-phead'>
<p id={titleId} className='cf-ch3-ptitle'>{helpTitle}</p>
<button type='button' className='cf-ch3-x' aria-label={closeLabel} onClick={() => change(false, true)}>
<X size={20} strokeWidth={2.5} aria-hidden='true' />
</button>
</div>
{helpLead ? <p className='cf-ch3-plead'>{helpLead}</p> : null}
{hasCoach ? <CoachLine variant='panel' {...coach} /> : null}
{tel ? (
<a className='cf-ch3-call' href={'tel:' + tel}>
<Phone size={20} strokeWidth={2.5} aria-hidden='true' />
<span>{fill(callLabel, { phone })}</span>
</a>
) : null}
{email || hours ? (
<ul className='cf-ch3-rows'>
{email ? (
<li>
<Mail size={18} strokeWidth={2.5} aria-hidden='true' />
<a className='cf-ch3-link' href={'mailto:' + email} aria-label={fill(emailLabel, { email })}>
{email}
</a>
</li>
) : null}
{hours ? (
<li>
<Clock size={18} strokeWidth={2.5} aria-hidden='true' />
<span>{fill(hoursLabel, { hours })}</span>
</li>
) : null}
</ul>
) : null}
</div>
</div>
) : null}
</div>
</header>
);
}
export default CheckoutHeader3;
// private
function CoachLine(p: { variant: 'bar' | 'panel'; image?: string; alt: string; quote: string; name: string; role: string }) {
return (
<div className={'cf-ch3-coach is-' + p.variant}>
{p.image ? <img className='cf-ch3-face' src={p.image} alt={p.alt} width={96} height={96} /> : null}
<figure className='cf-ch3-say'>
<blockquote className='cf-ch3-quote'>
<p>{'“' + p.quote.trim() + '”'}</p>
</blockquote>
{p.name || p.role ? (
<figcaption className='cf-ch3-by'>
{p.name ? <strong>{p.name}</strong> : null}
{p.name && p.role ? ', ' : ''}
{p.role ? <span className='cf-ch3-role'>{p.role}</span> : null}
</figcaption>
) : null}
</figure>
</div>
);
}
function fill(template: string, values: Record<string, string>) {
return Object.keys(values).reduce((text, key) => text.split('{' + key + '}').join(values[key]), template);
}
const CSS = `
.cf-ch3{--ch3-line:oklch(from var(--ink,#1b2434) l c h / .12);--ch3-well:color-mix(in oklch,var(--ink,#1b2434) 5%,var(--card,#ffffff));--ch3-shadow:var(--shadow,oklch(0.22 0.03 260));--ch3-focus:var(--field-focus,var(--accent,#2457c5));--ch3-btn:var(--button-bg,var(--cta,#d63b2f));--ch3-btn-2:var(--button-bg-2,var(--cta-2,#b8302a));--ch3-sec:var(--button-2-bg,var(--secondary,#e9ecf2));--ch3-glyph:var(--status-glyph,#ffffff);position:relative;z-index:20;box-sizing:border-box;background:var(--surface,#ffffff);color:var(--ink,#1b2434);font-family:var(--font-body,system-ui,sans-serif);border-bottom:1px solid var(--ch3-line)}
.cf-ch3.is-sticky{position:sticky;top:0}
.cf-ch3 *,.cf-ch3 *::before,.cf-ch3 *::after{box-sizing:border-box}
.cf-ch3 :is(button,a):focus-visible{outline:3px solid var(--ch3-focus);outline-offset:3px}
.cf-ch3-in{position:relative;z-index:1;display:grid;grid-template-columns:auto auto minmax(0,1fr) auto auto;grid-template-areas:'brand rule path coach help';align-items:center;column-gap:24px;max-width:1240px;min-height:96px;margin:0 auto;padding:0 clamp(16px,5vw,48px)}
.cf-ch3-brand{grid-area:brand;display:flex;align-items:center;min-width:0}
.cf-ch3-logo{display:block;max-width:180px;max-height:44px;width:auto;height:auto;object-fit:contain}
.cf-ch3-word{display:flex;flex-direction:column;gap:4px;min-width:0}
.cf-ch3-name{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.025em);font-size:1.375rem;line-height:1.05;color:var(--ink,#1b2434);text-wrap:balance}
.cf-ch3-tag{font-size:.875rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;line-height:1.2;color:var(--muted,#4b5568)}
.cf-ch3-rule{grid-area:rule;width:1px;height:40px;background:oklch(from var(--ink,#1b2434) l c h / .14)}
.cf-ch3-path{grid-area:path;min-width:0}
.cf-ch3-steps{display:flex;align-items:center;margin:0;padding:0;list-style:none}
.cf-ch3-step{position:relative;display:flex;align-items:center;gap:8px;min-width:0;flex:none}
.cf-ch3-step+.cf-ch3-step::before{content:'';flex:none;width:28px;height:2px;margin:0 10px;border-radius:2px;background:oklch(from var(--ink,#1b2434) l c h / .16)}
.cf-ch3-step.is-done+.cf-ch3-step::before{background:var(--success,#1f7a4a)}
.cf-ch3-dot{display:inline-flex;align-items:center;justify-content:center;flex:none;width:28px;height:28px;border-radius:999px;font-family:var(--font-display,inherit);font-size:.875rem;font-weight:800;font-variant-numeric:tabular-nums;line-height:1}
.cf-ch3-step.is-done .cf-ch3-dot{background:var(--success,#1f7a4a);color:var(--ch3-glyph)}
.cf-ch3-step.is-current .cf-ch3-dot{background:var(--accent-fill,var(--accent,#2457c5));color:var(--accent-fill-ink,#ffffff);outline:2px solid oklch(from var(--accent-fill,var(--accent,#2457c5)) l c h / .4);outline-offset:2px}
.cf-ch3-step.is-next .cf-ch3-dot{background:var(--ch3-well);color:var(--muted,#4b5568);border:1px solid oklch(from var(--ink,#1b2434) l c h / .14)}
.cf-ch3-label{font-size:.9375rem;font-weight:600;line-height:1.2;white-space:nowrap;color:var(--ink,#1b2434)}
.cf-ch3-step.is-current .cf-ch3-label{font-weight:800}
.cf-ch3-step.is-next .cf-ch3-label{color:var(--muted,#4b5568)}
.cf-ch3-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cf-ch3-coach{display:flex;align-items:flex-end;gap:12px;min-width:0}
.cf-ch3-coach.is-bar{grid-area:coach;align-self:stretch;padding-top:6px}
.cf-ch3-face{display:block;flex:none;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 2px 3px oklch(from var(--ch3-shadow) l c h / .28)) drop-shadow(0 10px 12px oklch(from var(--ch3-shadow) l c h / .14))}
.cf-ch3-coach.is-bar .cf-ch3-face{width:90px;height:90px}
.cf-ch3-say{position:relative;min-width:0;margin:0}
.cf-ch3-coach.is-bar .cf-ch3-say{align-self:center;max-width:320px;padding:10px 16px 11px;background:var(--card,#ffffff);border:1px solid var(--card-border,oklch(from var(--ink,#1b2434) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--shadow-sm,0 1px 2px oklch(from var(--ch3-shadow) l c h / .22),0 1px 3px oklch(from var(--ch3-shadow) l c h / .14))}
.cf-ch3-coach.is-bar .cf-ch3-say::before{content:'';position:absolute;left:-7px;top:50%;width:12px;height:12px;background:var(--card,#ffffff);border-left:1px solid var(--card-border,oklch(from var(--ink,#1b2434) l c h / .12));border-bottom:1px solid var(--card-border,oklch(from var(--ink,#1b2434) l c h / .12));transform:translateY(-50%) rotate(45deg)}
.cf-ch3-quote{margin:0}
.cf-ch3-quote p{margin:0;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);letter-spacing:-0.01em;font-size:1.0625rem;line-height:1.25;color:var(--ink,#1b2434);text-wrap:balance}
.cf-ch3-by{margin-top:4px;font-size:.875rem;line-height:1.3;color:var(--muted,#4b5568);text-wrap:pretty}
.cf-ch3-by strong{font-weight:700;color:var(--ink,#1b2434)}
.cf-ch3-coach.is-bar .cf-ch3-role{white-space:nowrap}
.cf-ch3-helpwrap{grid-area:help;position:relative;align-self:stretch;display:flex;align-items:center}
.cf-ch3-help{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border:1px solid var(--button-2-border,transparent);border-radius:var(--button-radius,var(--radius,12px));background:var(--ch3-sec);color:var(--button-2-ink,var(--secondary-ink,#1b2434));font-family:var(--button-font,var(--font-display,inherit));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:1rem;line-height:1;white-space:nowrap;cursor:pointer;box-shadow:var(--button-2-shadow,var(--shadow-sm,0 1px 2px oklch(from var(--ch3-shadow) l c h / .22)));transition:background-color .16s ease,transform .16s ease,border-color .16s ease}
.cf-ch3-help:hover,.cf-ch3-help.is-hover{background:oklch(from var(--ch3-sec) calc(l - .05) c h)}
.cf-ch3-help:active{transform:translateY(1px)}
.cf-ch3-help[aria-expanded='true']{background:color-mix(in oklch,var(--accent,#2457c5) 14%,var(--card,#ffffff));border-color:oklch(from var(--accent,#2457c5) l c h / .45);color:var(--ink,#1b2434)}
.cf-ch3-hs{display:none}
.cf-ch3-panel{position:absolute;top:calc(100% + 8px);right:0;z-index:30;display:flex;flex-direction:column;gap:16px;width:380px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 120px);overflow:auto;padding:24px;background:var(--card,#ffffff);color:var(--ink,#1b2434);border:1px solid var(--card-border,oklch(from var(--ink,#1b2434) 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(--ch3-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--ch3-shadow) l c h / .32)))}
.cf-ch3-panel[hidden]{display:none}
.cf-ch3-phead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.cf-ch3-ptitle{margin:0;padding-top:8px;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:-0.01em;font-size:1.3125rem;line-height:1.15;color:var(--ink,#1b2434);text-wrap:balance}
.cf-ch3-x{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;margin:-4px -10px 0 0;border:0;border-radius:999px;background:transparent;color:var(--muted,#4b5568);cursor:pointer;transition:background-color .16s ease,color .16s ease}
.cf-ch3-x:hover{background:var(--ch3-well);color:var(--ink,#1b2434)}
.cf-ch3-plead{margin:-8px 0 0;font-size:1rem;line-height:1.5;color:var(--muted,#4b5568);text-wrap:pretty}
.cf-ch3-coach.is-panel{display:none;padding:12px 16px 0 8px;border-radius:10px;background:var(--ch3-well)}
.cf-ch3-coach.is-panel:not(:has(.cf-ch3-face)){padding-left:16px}
.cf-ch3-coach.is-panel .cf-ch3-face{width:72px;height:72px}
.cf-ch3-coach.is-panel .cf-ch3-say{align-self:center;padding-bottom:12px}
.cf-ch3-call{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;padding:0 24px;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--ch3-btn) calc(l + .04) c h),oklch(from var(--ch3-btn-2) calc(l - .02) c h));color:var(--button-ink,var(--cta-ink,#ffffff));font-family:var(--button-font,var(--font-display,inherit));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:1.125rem;line-height:1.15;font-variant-numeric:tabular-nums;text-decoration:none;text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--ch3-btn) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--ch3-btn) calc(l - .16) c h),0 1px 2px oklch(from var(--ch3-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--ch3-shadow) l c h / .35));transition:background .16s ease,box-shadow .16s ease,transform .16s ease}
.cf-ch3-call:hover{background:linear-gradient(oklch(from var(--ch3-btn) calc(l - .01) c h),oklch(from var(--ch3-btn-2) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--ch3-btn) calc(l + .1) c h / .7),inset 0 -3px 0 oklch(from var(--ch3-btn) calc(l - .2) c h),0 1px 2px oklch(from var(--ch3-shadow) l c h / .32),0 10px 18px -6px oklch(from var(--ch3-shadow) l c h / .4))}
.cf-ch3-call:active{transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--ch3-btn) calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from var(--ch3-btn) calc(l - .16) c h),0 1px 2px oklch(from var(--ch3-shadow) l c h / .25)}
.cf-ch3-call svg{flex:none}
.cf-ch3-rows{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
.cf-ch3-rows li{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 2px;font-size:1rem;line-height:1.4;color:var(--ink,#1b2434);border-bottom:1px solid var(--ch3-line)}
.cf-ch3-rows li:last-child{border-bottom:0}
.cf-ch3-rows svg{flex:none;color:var(--accent,#2457c5)}
.cf-ch3-link{min-width:0;color:var(--link,var(--accent,#2457c5));font-weight:600;text-decoration:underline;text-decoration-color:oklch(from var(--link,var(--accent,#2457c5)) l c h / .45);text-underline-offset:.18em;overflow-wrap:anywhere;transition:color .16s ease}
.cf-ch3-link:hover{color:oklch(from var(--link,var(--accent,#2457c5)) calc(l - .08) c h);text-decoration-color:currentColor}
@keyframes cf-ch3-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
.cf-ch3-coach.is-bar .cf-ch3-face{animation:cf-ch3-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-ch3-coach.is-bar .cf-ch3-say{animation:cf-ch3-rise .45s cubic-bezier(.2,.7,.2,1) .07s both}
.cf-ch3-panel:not([hidden]){animation:cf-ch3-rise .3s cubic-bezier(.2,.7,.2,1) both}
}
@media (prefers-reduced-motion:reduce){
.cf-ch3-help,.cf-ch3-x,.cf-ch3-call,.cf-ch3-link{transition:none}
.cf-ch3-help:active,.cf-ch3-call:active{transform:none}
}
@media (max-width:1279px){
.cf-ch3-coach.is-bar{display:none}
.cf-ch3-coach.is-panel{display:flex}
}
@media (max-width:760px){
.cf-ch3-in{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'brand help' 'path path';column-gap:16px;row-gap:12px;min-height:0;padding-top:12px;padding-bottom:14px}
.cf-ch3-rule{display:none}
.cf-ch3-logo{max-width:150px;max-height:40px}
.cf-ch3-name{font-size:1.25rem}
.cf-ch3-helpwrap{position:static;align-self:center}
.cf-ch3-panel{left:clamp(16px,5vw,48px);right:clamp(16px,5vw,48px);width:auto;max-width:none;padding:20px}
.cf-ch3-path{padding-top:12px;border-top:1px solid var(--ch3-line)}
.cf-ch3-step:not(:first-child){flex:1 1 0}
.cf-ch3-step+.cf-ch3-step::before{flex:1 1 auto;width:auto;min-width:12px;margin:0 8px}
}
@media (max-width:520px){
.cf-ch3-hl{display:none}
.cf-ch3-hs{display:inline}
.cf-ch3-help{min-height:44px;padding:0 16px}
}
`;
pieces/nav/checkout-header-3/specimen.tsx 34 lines
import __studioImagee5244b99 from "../assets/649ff11dcc32a4d9.webp";
import * as React from 'react';
import { CheckoutHeader3 } from '../checkout-header-3';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active'];
type SpecimenState = 'default' | 'hover' | 'active';
export default function CheckoutHeader3Specimen({ state = 'default' }: { state?: SpecimenState }) {
return (
<CheckoutHeader3
state={state}
brandName='Cedar & Stone'
brandTagline='Mastermind'
logoImage={slot('logo', '')}
steps={['Apply', 'Book', 'Join']}
current={1}
coachImage={slot(
'presenter-cutout',
__studioImagee5244b99
)}
coachImageAlt='Elena Marsh, founder of the Cedar & Stone Mastermind'
coachQuote='I read every application myself.'
coachName='Elena Marsh'
coachRole='Founder, Cedar & Stone'
helpTitle='Want to talk it through first?'
helpLead='Call or email the team before you book your call.'
phone='(555) 014-2290'
email='apply@cedarandstone.example'
hours='Mon–Fri, 9am–5pm ET'
/>
);
}
| Name | Type | Details |
|---|---|---|
brandName OptionalCheckoutHeader3 |
string |
|
brandTagline OptionalCheckoutHeader3 |
string |
|
logoImage OptionalCheckoutHeader3 |
string |
|
logoAlt OptionalCheckoutHeader3 |
string |
|
steps OptionalCheckoutHeader3 |
string[] |
|
current OptionalCheckoutHeader3 |
number |
|
progressLabel OptionalCheckoutHeader3 |
string |
|
stepCountLabel OptionalCheckoutHeader3 |
string |
|
completedLabel OptionalCheckoutHeader3 |
string |
|
currentLabel OptionalCheckoutHeader3 |
string |
|
coachImage OptionalCheckoutHeader3 |
string |
|
coachImageAlt OptionalCheckoutHeader3 |
string |
|
coachQuote OptionalCheckoutHeader3 |
string |
|
coachName OptionalCheckoutHeader3 |
string |
|
coachRole OptionalCheckoutHeader3 |
string |
|
helpLabel OptionalCheckoutHeader3 |
string |
|
helpLabelShort OptionalCheckoutHeader3 |
string |
|
helpTitle OptionalCheckoutHeader3 |
string |
|
helpLead OptionalCheckoutHeader3 |
string |
|
phone OptionalCheckoutHeader3 |
string |
|
callLabel OptionalCheckoutHeader3 |
string |
|
email OptionalCheckoutHeader3 |
string |
|
emailLabel OptionalCheckoutHeader3 |
string |
|
hours OptionalCheckoutHeader3 |
string |
|
hoursLabel OptionalCheckoutHeader3 |
string |
|
closeLabel OptionalCheckoutHeader3 |
string |
|
defaultHelpOpen OptionalCheckoutHeader3 |
boolean |
|
onHelpToggle OptionalCheckoutHeader3 |
(open: boolean) => void |
|
sticky OptionalCheckoutHeader3 |
boolean |
|
state OptionalCheckoutHeader3 |
'default' | 'hover' | 'active' |
|
className OptionalCheckoutHeader3 |
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.
logo- The brand’s logo mark.
presenter-cutout- The presenter on a transparent background.
-
2c539f422023a290.webp
image/webp · 115 KB
-
649ff11dcc32a4d9.webp
image/webp · 302 KB