Use Case Stage 1
Use-case stage: trade pills swap one finished example onto a lit centre stage, with dimmed neighbours at the sides, so each visitor sees a page built for their business and clicks to get their own.
Use it in a prompt
Use content/use-case-stage 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/content/use-case-stage.tsx. - Import it and pass your copy and images (Props tab):
import { UseCaseStage } from "@/components/funneldna/content/use-case-stage"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/use-case-stage/component.tsx 410 lines
// layout: product-stage
// Use-case stage: trade pills swap one finished example onto a lit centre stage, with dimmed neighbours at the sides, so each visitor sees a page built for their business and clicks to get their own.
import React from 'react';
import { Check, Eye } from 'lucide-react';
import { FX_HOST, Glow, Pattern, Spot } from '../fx/fx';
import calendar from '../fx/spots/calendar';
import phone from '../fx/spots/phone';
import rocket from '../fx/spots/rocket';
import pin from '../fx/spots/pin';
export type UseCaseStageItem = {
/** Pill text: the audience or use, e.g. Dentists */
label: string;
/** Headline under the stage for this example */
title: string;
/** One line that says what the page does */
line: string;
/** Finished page or result for this audience (landscape art) */
image?: string;
imageAlt?: string;
/** Destination of the example link; no link when empty */
href?: string;
/** Short notes on what the page includes */
notes?: string[];
/** fx Spot asset shown on the stage when there is no image */
spot?: string;
/** Short words shown with the Spot when there is no image */
spotText?: string;
};
export type UseCaseStageProps = {
headline?: React.ReactNode;
/** One-sentence lines under the headline */
lead?: string[];
/** Short final line set bold for emphasis, e.g. Done. */
punch?: string;
/** Examples; proof-free, supplied by the page */
items?: UseCaseStageItem[];
/** Example shown first */
defaultIndex?: number;
onChange?: (index: number) => void;
/** Accessible name of the pill row */
tabsLabel?: string;
/** Text of the per-example link */
linkLabel?: string;
/** Tooltip of a side card; {label} is replaced with the item label */
showLabel?: string;
ctaLabel?: string;
/** One reassurance line under the button */
ctaNote?: string;
href?: string;
onAction?: () => void;
state?: 'default' | 'hover' | 'active' | 'disabled';
className?: string;
};
export function UseCaseStage({
headline = 'See the page we’d build for your business',
lead = ['Pick your trade.', 'See a finished page built for it.'],
punch = 'Done.',
items = DEFAULT_ITEMS,
defaultIndex = 0,
onChange,
tabsLabel = 'Examples by business type',
linkLabel = 'See this example',
showLabel = 'Show the {label} example',
ctaLabel = 'Build my page',
ctaNote = 'Tell us your trade. We handle the rest.',
href,
onAction,
state = 'default',
className,
}: UseCaseStageProps) {
const list = items.length ? items : DEFAULT_ITEMS;
const count = list.length;
const [active, setActive] = React.useState(() => wrap(defaultIndex, count));
const index = active < count ? active : 0;
const current = list[index];
const uid = React.useId().replace(/:/g, '');
const tabRefs = React.useRef<Array<HTMLButtonElement | null>>([]);
const scrollerRef = React.useRef<HTMLDivElement>(null);
const userMoved = React.useRef(false);
const dragStart = React.useRef<{ x: number; y: number } | null>(null);
const swiped = React.useRef(false);
const disabled = state === 'disabled';
const go = (target: number, focusTab = false) => {
const next = wrap(target, count);
userMoved.current = true;
if (focusTab) tabRefs.current[next]?.focus();
if (next !== index) {
setActive(next);
onChange?.(next);
}
};
React.useEffect(() => {
if (!userMoved.current) return;
const scroller = scrollerRef.current;
const tab = tabRefs.current[index];
if (!scroller || !tab || scroller.scrollWidth <= scroller.clientWidth) return;
const reduce = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
const left = tab.offsetLeft - (scroller.clientWidth - tab.offsetWidth) / 2;
scroller.scrollTo({ left: Math.max(0, left), behavior: reduce ? 'auto' : 'smooth' });
}, [index]);
const onTabKey = (event: React.KeyboardEvent<HTMLButtonElement>, i: number) => {
const moves: Record<string, number> = { ArrowRight: i + 1, ArrowLeft: i - 1, Home: 0, End: count - 1 };
if (!(event.key in moves)) return;
event.preventDefault();
go(moves[event.key], true);
};
const onPanelKey = (event: React.KeyboardEvent<HTMLDivElement>) => {
if (event.target !== event.currentTarget) return;
if (event.key === 'ArrowRight' || event.key === 'ArrowLeft') {
event.preventDefault();
go(index + (event.key === 'ArrowRight' ? 1 : -1));
}
};
const onPointerDown = (event: React.PointerEvent<HTMLDivElement>) => {
if (event.pointerType === 'mouse' && event.button !== 0) return;
dragStart.current = { x: event.clientX, y: event.clientY };
swiped.current = false;
};
const onPointerUp = (event: React.PointerEvent<HTMLDivElement>) => {
const start = dragStart.current;
dragStart.current = null;
if (!start) return;
const dx = event.clientX - start.x;
const dy = event.clientY - start.y;
if (Math.abs(dx) > 40 && Math.abs(dx) > Math.abs(dy)) {
swiped.current = true;
go(index + (dx < 0 ? 1 : -1));
}
};
const cta =
href && !disabled ? (
<a className='cf-ucs__cta' href={href} onClick={onAction ? () => onAction() : undefined}>
{ctaLabel}
</a>
) : (
<button type='button' className='cf-ucs__cta' disabled={disabled} onClick={() => onAction?.()}>
{ctaLabel}
</button>
);
return (
<section
className={['cf-ucs', className].filter(Boolean).join(' ')}
data-state={state}
style={FX_HOST}
aria-labelledby={`${uid}-h`}
>
<style>{CSS}</style>
<Glow />
<Pattern name='rings' fade='corner' tone='band-ink' />
<div className='cf-ucs__in'>
<div className='cf-ucs__head'>
<h2 id={`${uid}-h`} className='cf-ucs__h'>
{headline}
</h2>
{lead.length || punch ? (
<div className='cf-ucs__lead'>
{lead.map((line, i) => (
<p key={i}>{line}</p>
))}
{punch ? <p className='cf-ucs__punch'>{punch}</p> : null}
</div>
) : null}
</div>
<div className='cf-ucs__tabs' ref={scrollerRef}>
<div className='cf-ucs__row' role='tablist' aria-label={tabsLabel}>
{list.map((item, i) => (
<button
key={i}
ref={(el) => {
tabRefs.current[i] = el;
}}
type='button'
role='tab'
id={`${uid}-tab-${i}`}
aria-selected={i === index}
aria-controls={`${uid}-panel`}
tabIndex={i === index ? 0 : -1}
className='cf-ucs__pill'
onClick={() => go(i)}
onKeyDown={(event) => onTabKey(event, i)}
>
{item.label}
</button>
))}
</div>
</div>
<div
id={`${uid}-panel`}
role='tabpanel'
aria-labelledby={`${uid}-tab-${index}`}
tabIndex={0}
className='cf-ucs__panel'
onKeyDown={onPanelKey}
>
<div
className='cf-ucs__stage'
onPointerDown={onPointerDown}
onPointerUp={onPointerUp}
onPointerCancel={() => {
dragStart.current = null;
}}
>
<div className='cf-ucs__sizer' aria-hidden='true' />
{list.map((item, i) => {
const offset = offsetOf(i, index, count);
const pos = offset === 0 ? 'center' : Math.abs(offset) === 1 ? 'side' : 'far';
const style = {
'--o': Math.max(-2, Math.min(2, offset)),
'--abs': offset === 0 ? 0 : 1,
} as React.CSSProperties;
return (
<div
key={i}
className='cf-ucs__card'
data-pos={pos}
style={style}
aria-hidden={pos === 'center' ? undefined : true}
title={pos === 'side' ? showLabel.replace('{label}', item.label) : undefined}
onClick={
pos === 'side'
? () => {
if (swiped.current) {
swiped.current = false;
return;
}
go(i);
}
: undefined
}
>
{item.image ? (
<img
src={item.image}
alt={pos === 'center' ? item.imageAlt ?? item.title : ''}
width={1600}
height={1000}
loading={i === index ? 'eager' : 'lazy'}
decoding='async'
draggable={false}
/>
) : (
<div className='cf-ucs__spot'>
<Spot src={item.spot ?? rocket} size={104} />
<p>{item.spotText ?? item.label}</p>
</div>
)}
</div>
);
})}
</div>
<div className='cf-ucs__foot'>
<div key={index} className='cf-ucs__cap'>
<h3 className='cf-ucs__title'>{current.title}</h3>
<p className='cf-ucs__line'>{current.line}</p>
{current.notes?.length ? (
<ul className='cf-ucs__notes'>
{current.notes.map((note) => (
<li key={note}>
<Check size={16} strokeWidth={2.5} aria-hidden='true' />
{note}
</li>
))}
</ul>
) : null}
{current.href ? (
<a className='cf-ucs__link' href={current.href} aria-label={`${linkLabel}: ${current.label}`}>
<Eye size={16} strokeWidth={2.5} aria-hidden='true' />
{linkLabel}
</a>
) : null}
</div>
<div className='cf-ucs__act'>
{cta}
{ctaNote ? <p className='cf-ucs__note'>{ctaNote}</p> : null}
</div>
</div>
</div>
</div>
</section>
);
}
export default UseCaseStage;
function wrap(i: number, n: number) {
return n ? ((i % n) + n) % n : 0;
}
function offsetOf(i: number, active: number, n: number) {
let d = i - active;
if (n > 2) {
if (d > n / 2) d -= n;
else if (d < -n / 2) d += n;
}
return d;
}
const DEFAULT_ITEMS: UseCaseStageItem[] = [
{
label: 'Coaches',
title: 'A page that books discovery calls',
line: 'Your story, your offer and one button to book a call.',
notes: ['Call booking', 'Clear offer', 'Your story'],
spot: calendar,
spotText: 'Book-a-call page',
},
{
label: 'Clinics',
title: 'A page that fills the appointment book',
line: 'The answers patients look for and booking above the fold.',
notes: ['Online booking', 'Map and hours'],
spot: phone,
spotText: 'Appointment page',
},
{
label: 'Studios',
title: 'A page that turns visitors into members',
line: 'A first-visit offer, the timetable and one big join button.',
notes: ['Intro offer', 'Class times'],
spot: rocket,
spotText: 'Membership page',
},
{
label: 'Shops',
title: 'A page that brings people through the door',
line: 'Your best offer, where to find you and one clear next step.',
notes: ['In-store offer', 'Directions'],
spot: pin,
spotText: 'Visit-us page',
},
];
const CSS = `
.cf-ucs{--gutter:clamp(16px,5vw,48px);--w:min(720px,calc(100% - 2 * var(--gutter)));--ratio:16 / 10;--step:84%;--shrink:.44;--side:.4;--ease:cubic-bezier(.2,.7,.2,1);--soft-ink:color-mix(in oklch,var(--band-ink) 80%,var(--band));position:relative;overflow:hidden;overflow:clip;background:var(--band);color:var(--band-ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) 0 clamp(64px,8.5vw,120px)}
.cf-ucs *{box-sizing:border-box}
.cf-ucs__in{position:relative;z-index:1}
.cf-ucs__head{max-width:46rem;margin:0 auto;padding:0 var(--gutter);text-align:center}
.cf-ucs__h{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-.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-ucs__lead{margin-top:16px;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--soft-ink)}
.cf-ucs__lead p{margin:0;text-wrap:pretty}
.cf-ucs__punch{font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-.01em;color:var(--band-ink)}
.cf-ucs__head>*{animation:cf-ucs-rise .45s var(--ease) both}
.cf-ucs__head>*:nth-child(2){animation-delay:.07s}
.cf-ucs__tabs{position:relative;margin-top:32px;padding:4px var(--gutter);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
.cf-ucs__tabs::-webkit-scrollbar{display:none}
.cf-ucs__row{display:flex;gap:8px;width:max-content;margin:0 auto}
.cf-ucs__pill{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:0;border-radius:999px;font-family:var(--font-body);font-size:1rem;font-weight:700;line-height:1.2;white-space:nowrap;cursor:pointer;color:var(--band-ink);background:oklch(from var(--band-ink) l c h / .1);transition:background .16s ease,color .16s ease,transform .16s ease}
.cf-ucs__pill:hover{background:oklch(from var(--band-ink) l c h / .18)}
.cf-ucs__pill:active{transform:translateY(1px)}
.cf-ucs__pill[aria-selected=true]{background:var(--band-ink);color:var(--band)}
.cf-ucs__pill:focus-visible{outline:2px solid var(--band-ink);outline-offset:2px}
.cf-ucs__panel{margin-top:40px;outline:none}
.cf-ucs__stage{position:relative;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.cf-ucs__sizer{width:var(--w);aspect-ratio:var(--ratio);margin:0 auto}
.cf-ucs__card{position:absolute;top:0;left:50%;width:var(--w);aspect-ratio:var(--ratio);border-radius:12px;overflow:hidden;background:oklch(from var(--band) calc(l + .07) c h);transform:translateX(calc(-50% + var(--o) * var(--step))) scale(calc(1 - var(--abs) * var(--shrink)));opacity:calc(1 - var(--abs) * (1 - var(--side)));transition:transform .55s var(--ease),opacity .45s ease}
.cf-ucs__card img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.cf-ucs__card[data-pos=center]{z-index:2;box-shadow:var(--shadow-lg,0 2px 4px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .3),0 12px 24px -8px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .45))}
.cf-ucs__card[data-pos=side]{z-index:1;cursor:pointer}
.cf-ucs__card[data-pos=side]:hover,.cf-ucs[data-state=hover] .cf-ucs__card[data-pos=side]{opacity:calc(var(--side) + .2)}
.cf-ucs__card[data-pos=far]{z-index:0;opacity:0;pointer-events:none}
.cf-ucs__panel:focus-visible .cf-ucs__card[data-pos=center]{outline:3px solid var(--band-ink);outline-offset:4px}
.cf-ucs__spot{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:clamp(20px,3vw,32px);text-align:center}
.cf-ucs__spot p{margin:0;max-width:24em;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-.01em;color:var(--band-ink);text-wrap:balance}
.cf-ucs__card[data-pos=side] .cf-ucs__spot p,.cf-ucs__card[data-pos=far] .cf-ucs__spot p{visibility:hidden}
.cf-ucs__foot{width:var(--w);margin:32px auto 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,296px);gap:24px 40px;align-items:start}
.cf-ucs__cap{animation:cf-ucs-rise .45s var(--ease) both}
.cf-ucs__title{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-.01em;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-wrap:balance;color:var(--band-ink)}
.cf-ucs__line{margin:8px 0 0;max-width:60ch;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--soft-ink);text-wrap:pretty}
.cf-ucs__notes{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.cf-ucs__notes li{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:4px 12px;border-radius:999px;background:oklch(from var(--band-ink) l c h / .12);color:var(--band-ink);font-size:.875rem;font-weight:700;line-height:1.2}
.cf-ucs__notes svg{flex:0 0 auto}
.cf-ucs__link{display:inline-block;margin-top:16px;color:var(--band-ink);font-size:1rem;font-weight:700;line-height:1.4;text-decoration:underline;text-decoration-thickness:1.5px;text-decoration-color:oklch(from var(--band-ink) l c h / .45);text-underline-offset:.18em;transition:text-decoration-color .16s ease}
.cf-ucs__link svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
.cf-ucs__link:hover{text-decoration-color:var(--band-ink)}
.cf-ucs__link:focus-visible{outline:2px solid var(--band-ink);outline-offset:3px;border-radius:4px}
.cf-ucs__act{display:flex;flex-direction:column;align-items:stretch;min-width:0}
.cf-ucs__cta{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:64px;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));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-decoration:none;cursor:pointer;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .35),0 8px 16px -6px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-ucs__cta:not(:disabled):hover,.cf-ucs[data-state=hover] .cf-ucs__cta:not(:disabled){background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .12) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .18) c h),0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .4),0 10px 18px -6px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .55))}
.cf-ucs__cta:not(:disabled):active,.cf-ucs[data-state=active] .cf-ucs__cta:not(:disabled){transform:translateY(1px);box-shadow:inset 0 2px 3px oklch(from var(--button-bg,var(--cta)) calc(l - .22) c h / .45),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 1px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .3)}
.cf-ucs__cta:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
.cf-ucs__cta:disabled{cursor:not-allowed;opacity:.55;box-shadow:inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .5)}
.cf-ucs__note{margin:12px 0 0;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--soft-ink);text-align:center;text-wrap:balance}
@keyframes cf-ucs-rise{from{opacity:.82;transform:translateY(8px)}}
@media (max-width:719px){
.cf-ucs{--w:calc(100% - 52px);--ratio:4 / 3;--step:calc(100% + 10px);--shrink:0;--side:.5}
.cf-ucs__tabs{-webkit-mask-image:linear-gradient(90deg,transparent,var(--band) var(--gutter),var(--band) calc(100% - var(--gutter)),transparent);mask-image:linear-gradient(90deg,transparent,var(--band) var(--gutter),var(--band) calc(100% - var(--gutter)),transparent)}
.cf-ucs__row{margin:0}
.cf-ucs__panel{margin-top:28px}
.cf-ucs__foot{grid-template-columns:minmax(0,1fr);gap:28px;margin-top:24px}
}
@media (prefers-reduced-motion:reduce){
.cf-ucs__head>*,.cf-ucs__cap{animation:none}
.cf-ucs__card{transition:opacity .25s ease}
.cf-ucs__pill,.cf-ucs__cta,.cf-ucs__link{transition:none}
}
`;
pieces/content/use-case-stage/specimen.tsx 63 lines
import __studioImage53569908 from "../assets/5df292142c0357e8.webp";
import __studioImageb4a819cb from "../assets/3ce4c29b225a2f19.webp";
import __studioImageb73d4261 from "../assets/a1fc858979ac109a.webp";
import React from 'react';
import { UseCaseStage } from '../use-case-stage';
import defaults from '../../studio-defaults.json';
import community from '../../fx/spots/community';
export const states = ['default', 'hover', 'active', 'disabled'];
type DemoState = 'default' | 'hover' | 'active' | 'disabled';
export default function UseCaseStageSpecimen({ state = 'default' }: { state?: DemoState }) {
return (
<UseCaseStage
state={state}
headline='See the page Pagecraft would build for your business'
lead={['Pick your trade.', 'See the finished page we’d hand you.']}
punch='Done.'
tabsLabel='Pagecraft examples by trade'
ctaLabel='Build my page'
ctaNote={`One flat price · ${defaults.sample.guarantee}`}
href='#start'
items={[
{
label: 'Dentists',
title: 'A page that fills the appointment book',
line: 'One clear offer, the answers patients look for, and booking above the fold.',
notes: ['Online booking', 'Insurance answers', 'Map and hours'],
href: '#example-dentists',
image: __studioImage53569908,
imageAlt: 'Pagecraft landing page for a family dental practice, shown on a laptop at the clinic desk',
},
{
label: 'Gyms',
title: 'A page that turns visitors into trial members',
line: 'A free-pass offer up top, the class timetable, and one big join button.',
notes: ['Free-pass offer', 'Class timetable', 'Coach profiles'],
href: '#example-gyms',
image: __studioImageb4a819cb,
imageAlt: 'Pagecraft landing page for a boutique gym, shown on a laptop inside the gym',
},
{
label: 'Salons',
title: 'A page that keeps every chair booked',
line: 'Your service menu, your best work, and booking in two taps.',
notes: ['Book-a-chair button', 'Service menu', 'Style gallery'],
href: '#example-salons',
image: __studioImageb73d4261,
imageAlt: 'Pagecraft landing page for a hair salon, shown on a laptop at a styling station',
},
{
label: 'Your trade',
title: 'Don’t see your trade? We’ll build yours.',
line: 'Tell us what you do. We plan, write and build the page around your best offer.',
notes: ['Any local business', 'Written for you', 'Live in a week'],
spot: community,
spotText: 'Plumbers. Florists. Vets. Yours next.',
},
]}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalUseCaseStage |
React.ReactNode |
Default 'See the page we’d build for your business'
|
lead OptionalUseCaseStage |
string[] |
Default ['Pick your trade.', 'See a finished page built for it.']
|
punch OptionalUseCaseStage |
string |
Default 'Done.'
|
items OptionalUseCaseStage |
UseCaseStageItem[] |
Default DEFAULT_ITEMS
|
defaultIndex OptionalUseCaseStage |
number |
Default 0
|
onChange OptionalUseCaseStage |
(index: number) => void |
|
tabsLabel OptionalUseCaseStage |
string |
Default 'Examples by business type'
|
linkLabel OptionalUseCaseStage |
string |
Default 'See this example'
|
showLabel OptionalUseCaseStage |
string |
Default 'Show the {label} example'
|
ctaLabel OptionalUseCaseStage |
string |
Default 'Build my page'
|
ctaNote OptionalUseCaseStage |
string |
Default 'Tell us your trade. We handle the rest.'
|
href OptionalUseCaseStage |
string |
|
onAction OptionalUseCaseStage |
() => void |
|
state OptionalUseCaseStage |
'default' | 'hover' | 'active' | 'disabled' |
Default 'default'
|
className OptionalUseCaseStage |
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.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
This piece reads no image slots.
-
09bc3d4486616844.webp
image/webp · 23.2 KB
-
0d114386aa55e8d2.webp
image/webp · 15.6 KB
-
321240b3188e2da4.webp
image/webp · 18.7 KB
-
3ce4c29b225a2f19.webp
image/webp · 95.8 KB
-
5602e47ebdb81810.webp
image/webp · 35.6 KB
-
5df292142c0357e8.webp
image/webp · 65.9 KB
-
a1fc858979ac109a.webp
image/webp · 125 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
d7814fce240ddf0e.webp
image/webp · 17.6 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB