Milestone Collection 1
Milestone collection: a dark stage of collectible badges, shown as silhouettes until earned, so a challenge, course or membership feels worth finishing; a risk-first join strip closes the band.
Use it in a prompt
Use content/milestone-collection 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/milestone-collection.tsx. - Import it and pass your copy and images (Props tab):
import { MilestoneCollection } from "@/components/funneldna/content/milestone-collection"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/milestone-collection/component.tsx 270 lines
// layout: hello-strip
// Milestone collection: a dark stage of collectible badges, shown as silhouettes until earned, so a challenge, course or membership feels worth finishing; a risk-first join strip closes the band.
import React, { useId, useState } from "react";
import { Check, Lock, Sparkles } from "lucide-react";
import { Glow, FX_HOST } from "../fx/fx";
import star from "../fx/spots/star";
export type MilestoneTone = "accent" | "cta" | "success" | "warning" | "blend" | "silver";
export type MilestoneItem = {
name: string; // one short line, e.g. "Steady Hand"
milestone: string; // what unlocks it, short, e.g. "Day 7"
rule: string; // how it is earned, revealed on hover, focus or tap
image?: string; // transparent cut-out; recoloured to its tone by the theme
tone?: MilestoneTone; // theme colour the item is tinted with (cycles when omitted)
locked?: boolean; // shows as a silhouette with a lock until hovered or focused
};
export type MilestoneCollectionProps = {
headline?: React.ReactNode;
subline?: React.ReactNode;
items?: MilestoneItem[];
defaultImage?: string; // cut-out used for items without an image
hint?: string; // inspector line before a badge is hovered
lockedText?: string; // screen-reader status for locked badges
unlockedText?: string; // screen-reader status for earned badges
riskHeadline?: React.ReactNode; // strip lead: the risk reversal comes first
riskText?: React.ReactNode;
actionLabel?: string; // empty hides the strip
price?: string; // follows the label on the button when given
priceTemplate?: string; // "{label}" and "{price}" are replaced
ps?: React.ReactNode; // line under the action
href?: string;
onAction?: () => void;
disabled?: boolean;
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
const TONES: MilestoneTone[] = ["accent", "warning", "success", "cta", "blend", "silver"];
const DEFAULT_ITEMS: MilestoneItem[] = [
{ name: "First Step", milestone: "Day 1", rule: "Finish your first session.", tone: "accent" },
{ name: "Spark", milestone: "3-day streak", rule: "Show up three days in a row.", tone: "warning", locked: true },
{ name: "Steady", milestone: "Day 7", rule: "Complete a full week without a miss.", tone: "success", locked: true },
{ name: "Deep Work", milestone: "Long session", rule: "Finish one session twice your usual length.", tone: "cta", locked: true },
{ name: "Halfway", milestone: "Day 15", rule: "Reach the midpoint with every day logged.", tone: "blend", locked: true },
{ name: "Momentum", milestone: "Day 21", rule: "Keep going for three straight weeks.", tone: "silver", locked: true },
{ name: "Shared", milestone: "Show your work", rule: "Share one finished piece with someone.", tone: "accent", locked: true },
{ name: "Finisher", milestone: "Day 30", rule: "Complete every day of the challenge.", tone: "warning", locked: true },
];
export function MilestoneCollection(props: MilestoneCollectionProps) {
const {
headline = "Unlock a badge for every milestone",
subline = "Every step you finish earns you something to keep, so progress feels worth collecting.",
items = DEFAULT_ITEMS,
defaultImage = star,
hint = "Hover or tap a badge to see how you earn it.",
lockedText = "Locked",
unlockedText = "Unlocked",
riskHeadline = "Start collecting today.",
riskText = "Every milestone you reach unlocks a badge you keep.",
actionLabel = "Start the challenge",
price,
priceTemplate = "{label} for {price}",
ps,
href,
onAction,
disabled = false,
state = "default",
className,
} = props;
const uid = useId().replace(/[^a-zA-Z0-9]/g, "");
const [hover, setHover] = useState<number | null>(null);
const [pinned, setPinned] = useState<number | null>(null);
const firstLocked = items.findIndex((it) => it.locked);
const forced = state === "hover" && items.length > 0 ? (firstLocked >= 0 ? firstLocked : 0) : null;
const active = forced ?? hover ?? pinned;
const shown = active != null ? items[active] : undefined;
const isDisabled = disabled || state === "disabled";
const label = price ? priceTemplate.replace("{label}", actionLabel).replace("{price}", price) : actionLabel;
const cols = items.length <= 8 ? 4 : items.length <= 10 ? 5 : 6;
const showStrip = Boolean(actionLabel);
const btnClass = ["mc-btn", state === "hover" && "is-hover", state === "active" && "is-active"].filter(Boolean).join(" ");
const button =
href && !isDisabled ? (
<a className={btnClass} href={href} onClick={onAction ? () => onAction() : undefined}>
{label}
</a>
) : (
<button type="button" className={btnClass} disabled={isDisabled} onClick={() => onAction?.()}>
{label}
</button>
);
return (
<section
className={["cf-milestone-collection", showStrip && "has-strip", className].filter(Boolean).join(" ")}
style={FX_HOST}
aria-labelledby={`${uid}-h`}
>
<style>{CSS}</style>
<Glow />
<div className="mc-wrap">
<header className="mc-head">
<h2 id={`${uid}-h`}>{headline}</h2>
{subline ? <p className="mc-lead">{subline}</p> : null}
</header>
{items.length > 0 ? (
<>
<ul className="mc-grid" style={{ "--cols": cols } as React.CSSProperties} onMouseLeave={() => setHover(null)}>
{items.map((it, i) => {
const tone = it.tone ?? TONES[i % TONES.length];
const src = it.image || defaultImage;
const mask = `url("${src}")`;
const maskStyle: React.CSSProperties = { WebkitMaskImage: mask, maskImage: mask };
const on = active === i;
const open = !it.locked || on;
return (
<li key={`${it.name}-${i}`} className="mc-item" style={{ "--i": i } as React.CSSProperties}>
<button
type="button"
className={["mc-tile", `mc-t-${tone}`, open && "is-open", on && "is-on", !it.locked && "is-earned"].filter(Boolean).join(" ")}
aria-describedby={`${uid}-r${i}`}
onMouseEnter={() => setHover(i)}
onFocus={() => setPinned(i)}
onBlur={() => setPinned((p) => (p === i ? null : p))}
onClick={() => setPinned(i)}
>
<span className="mc-stage" aria-hidden="true">
<span className="mc-glow" />
<span className="mc-plinth" />
<span className="mc-gem">
<img src={src} alt="" draggable={false} decoding="async" />
<span className="mc-tint" style={maskStyle} />
<span className="mc-ghost" style={maskStyle} />
</span>
</span>
<span className="mc-name">{it.name}</span>
<span className="mc-mile">
{it.locked ? (
<Lock size={16} strokeWidth={2.5} aria-hidden="true" />
) : (
<span className="mc-tick" aria-hidden="true">
<Check size={11} strokeWidth={3} />
</span>
)}
{it.milestone}
</span>
<span className="mc-sr">{it.locked ? lockedText : unlockedText}</span>
</button>
<span id={`${uid}-r${i}`} className="mc-sr">
{it.rule}
</span>
</li>
);
})}
</ul>
<div className="mc-inspect" aria-live="polite">
{shown ? (
<p key={`r${active}`}>
{shown.locked ? (
<Lock size={16} strokeWidth={2.5} aria-hidden="true" />
) : (
<span className="mc-tick" aria-hidden="true">
<Check size={11} strokeWidth={3} />
</span>
)}
<strong>{shown.name}:</strong> {shown.rule}
</p>
) : (
<p key="hint">
<Sparkles size={16} strokeWidth={2.5} aria-hidden="true" />
{hint}
</p>
)}
</div>
</>
) : null}
</div>
{showStrip ? (
<div className="mc-strip">
<div className="mc-strip-in">
<div className="mc-risk">
{riskHeadline ? <h3>{riskHeadline}</h3> : null}
{riskText ? <p>{riskText}</p> : null}
</div>
<div className="mc-act">{button}</div>
{ps ? <p className="mc-ps">{ps}</p> : null}
</div>
</div>
) : null}
</section>
);
}
export default MilestoneCollection;
const R = ".cf-milestone-collection";
const CSS = `
${R}{--mc-gut:clamp(16px,5vw,48px);--mc-shadow:var(--shadow,oklch(0.22 0.03 260));position:relative;isolation:isolate;overflow:hidden;background:var(--band);color:var(--band-ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) 0 clamp(64px,8.5vw,120px)}
${R}.has-strip{padding-bottom:0}
${R} .mc-wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto;padding:0 var(--mc-gut)}
${R} .mc-head{max-width:46rem;margin:0 auto;text-align:center}
${R} .mc-head h2{margin:0 0 16px;font-family:var(--font-display);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);text-wrap:balance;color:var(--band-ink)}
${R} .mc-lead{margin:0;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:color-mix(in oklch,var(--band-ink) 84%,var(--band));text-wrap:pretty}
${R} .mc-grid{--c:var(--cols,5);--g:clamp(10px,1.6vw,20px);list-style:none;margin:clamp(32px,4.5vw,64px) 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:var(--g)}
${R} .mc-item{position:relative;min-width:0;flex:0 0 calc((100% - (var(--c) - 1) * var(--g)) / var(--c))}
${R} .mc-t-accent{--tone:var(--accent-fill,var(--accent))}
${R} .mc-t-cta{--tone:var(--button-bg,var(--cta))}
${R} .mc-t-success{--tone:var(--success)}
${R} .mc-t-warning{--tone:var(--warning)}
${R} .mc-t-blend{--tone:color-mix(in oklab,var(--accent-fill,var(--accent)),var(--button-bg,var(--cta)))}
${R} .mc-t-silver{--tone:var(--band-ink)}
${R} .mc-tile{appearance:none;-webkit-appearance:none;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;margin:0;padding:clamp(12px,1.4vw,16px) clamp(12px,1.4vw,16px) clamp(16px,1.8vw,20px);border:1px solid oklch(from var(--band-ink) l c h / 0.1);border-radius:var(--card-radius,var(--radius,14px));background:oklch(from var(--band-ink) l c h / 0.05);color:var(--band-ink);font:inherit;text-align:center;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .16s ease,background-color .16s ease,border-color .16s ease,box-shadow .16s ease}
${R} .mc-tile.is-on{transform:translateY(-4px);background:oklch(from var(--band-ink) l c h / 0.09);border-color:oklch(from var(--tone) 0.72 c h / 0.65);box-shadow:0 1px 2px oklch(from var(--mc-shadow) calc(l - 0.08) c h / 0.45),0 14px 22px -10px oklch(from var(--mc-shadow) calc(l - 0.08) c h / 0.7)}
${R} .mc-tile.is-earned{background:oklch(from var(--band-ink) l c h / 0.07);border-color:oklch(from var(--tone) 0.72 c h / 0.38)}
${R} .mc-tile.is-earned.is-on{border-color:oklch(from var(--tone) 0.72 c h / 0.7)}
${R} .mc-tile:focus-visible{outline:2px solid var(--band-ink);outline-offset:3px}
${R} .mc-stage{position:relative;display:block;width:100%;aspect-ratio:1/1}
${R} .mc-glow{position:absolute;left:16%;right:16%;bottom:4%;height:30%;border-radius:50%;background:radial-gradient(closest-side,oklch(from var(--tone) 0.74 c h / 0.42),oklch(from var(--tone) 0.7 c h / 0.1) 62%,transparent);opacity:0;transition:opacity .3s ease}
${R} .mc-tile.is-open .mc-glow{opacity:1}
${R} .mc-plinth{position:absolute;left:50%;bottom:11%;width:42%;height:7%;transform:translateX(-50%);border-radius:50%;background:linear-gradient(oklch(from var(--band-ink) l c h / 0.16),oklch(from var(--band-ink) l c h / 0.04));box-shadow:inset 0 1px 0 oklch(from var(--band-ink) l c h / 0.18)}
${R} .mc-gem{position:absolute;left:19%;top:10%;width:62%;height:68%;isolation:isolate;transition:transform .3s cubic-bezier(.2,.7,.2,1)}
${R} .mc-tile.is-on .mc-gem{transform:translateY(-4%) scale(1.04)}
${R} .mc-gem img,${R} .mc-tint,${R} .mc-ghost{position:absolute;inset:0;width:100%;height:100%;transition:opacity .3s ease}
${R} .mc-gem img{display:block;object-fit:contain;filter:grayscale(1) contrast(1.08) drop-shadow(0 2px 3px oklch(from var(--mc-shadow) calc(l - 0.1) c h / 0.5)) drop-shadow(0 10px 12px oklch(from var(--mc-shadow) calc(l - 0.1) c h / 0.35));opacity:0}
${R} .mc-tint,${R} .mc-ghost{-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}
${R} .mc-tint{background:var(--tone);mix-blend-mode:color;opacity:0}
${R} .mc-ghost{background:linear-gradient(165deg,oklch(from var(--band-ink) l c h / 0.3),oklch(from var(--band-ink) l c h / 0.08));opacity:1}
${R} .mc-tile.is-open .mc-gem img,${R} .mc-tile.is-open .mc-tint{opacity:1}
${R} .mc-tile.is-open .mc-ghost{opacity:0}
${R} .mc-name{display:block;max-width:100%;margin-top:12px;font-family:var(--font-display);font-size:clamp(0.9375rem,1.25vw,1.0625rem);line-height:1.25;font-weight:800;letter-spacing:-0.01em;white-space:normal;overflow-wrap:break-word;text-wrap:balance;color:var(--band-ink)}
${R} .mc-mile{display:block;max-width:100%;margin-top:4px;font-size:0.875rem;line-height:1.3;font-weight:700;color:color-mix(in oklch,var(--band-ink) 80%,var(--band));text-wrap:balance}
${R} .mc-mile>svg,${R} .mc-inspect p>svg{display:inline-block;vertical-align:-0.2em;margin-inline-end:0.35em}
${R} .mc-tick{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:var(--success);color:var(--mc-glyph,#fff);vertical-align:-0.2em;margin-inline-end:0.35em}
${R} .mc-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
${R} .mc-inspect{display:flex;align-items:center;justify-content:center;max-width:46rem;min-height:56px;margin:clamp(24px,3vw,32px) auto 0;padding:12px 20px;border-radius:var(--radius,12px);background:oklch(from var(--band-ink) l c h / 0.07);text-align:center}
${R} .mc-inspect p{margin:0;font-size:1rem;line-height:1.45;font-weight:500;color:color-mix(in oklch,var(--band-ink) 88%,var(--band));text-wrap:pretty}
${R} .mc-inspect strong{font-weight:800;color:var(--band-ink)}
${R} .mc-strip{position:relative;z-index:1;margin-top:clamp(48px,6vw,80px);padding:clamp(20px,2.6vw,28px) var(--mc-gut);background:oklch(from var(--band) calc(l + 0.05) c h)}
${R} .mc-strip-in{max-width:1120px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 32px}
${R} .mc-risk{flex:1 1 26rem;min-width:0}
${R} .mc-risk h3{margin:0 0 6px;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-0.01em;text-transform:var(--display-case,none);text-wrap:balance;color:var(--band-ink)}
${R} .mc-risk p{margin:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:color-mix(in oklch,var(--band-ink) 86%,var(--band));text-wrap:pretty}
${R} .mc-act{flex:0 0 auto}
${R} .mc-ps{flex:1 1 100%;margin:4px 0 0;font-size:0.9375rem;line-height:1.4;font-weight:500;color:color-mix(in oklch,var(--band-ink) 82%,var(--band));text-wrap:pretty}
${R} .mc-ps strong{color:var(--band-ink);font-weight:800}
${R} .mc-btn{--b:var(--button-bg,var(--cta));--b2:var(--button-bg-2,var(--cta-2));position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:64px;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--b) calc(l + 0.04) c h),oklch(from var(--b2) calc(l - 0.02) c h));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;font-weight:var(--button-weight,800);text-transform:var(--button-case,none);text-shadow:var(--button-text-shadow,none);text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--b) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--b) calc(l - 0.16) c h),0 1px 2px oklch(from var(--mc-shadow) calc(l - 0.08) c h / 0.45),0 8px 16px -6px oklch(from var(--mc-shadow) calc(l - 0.08) c h / 0.55));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
${R} .mc-btn:hover,${R} .mc-btn.is-hover{background:linear-gradient(oklch(from var(--b) calc(l - 0.01) c h),oklch(from var(--b2) calc(l - 0.07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--b) calc(l + 0.1) c h / 0.7),inset 0 -3px 0 oklch(from var(--b) calc(l - 0.2) c h),0 1px 2px oklch(from var(--mc-shadow) calc(l - 0.08) c h / 0.5),0 12px 20px -6px oklch(from var(--mc-shadow) calc(l - 0.08) c h / 0.65))}
${R} .mc-btn:active,${R} .mc-btn.is-active{transform:translateY(1px);box-shadow:var(--button-shadow,inset 0 2px 4px oklch(from var(--b) calc(l - 0.2) c h / 0.45),inset 0 -2px 0 oklch(from var(--b) calc(l - 0.16) c h),0 1px 2px oklch(from var(--mc-shadow) calc(l - 0.08) c h / 0.45))}
${R} .mc-btn:focus-visible{outline:2px solid var(--band-ink);outline-offset:3px}
${R} .mc-btn:disabled{background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm));cursor:not-allowed;transform:none}
@media (max-width:900px){${R} .mc-grid{--c:min(var(--cols,5),4)}}
@media (max-width:600px){${R} .mc-grid{--c:2;--g:12px}${R} .mc-stage{width:min(100%,128px)}${R} .mc-name{font-size:1rem}${R} .mc-inspect{min-height:76px;padding:12px 16px}${R} .mc-act{flex:1 1 100%}${R} .mc-btn{width:100%;white-space:normal;text-wrap:balance;text-align:center}}
@keyframes cf-mc-rise{from{opacity:.82;transform:translateY(8px)}}
@keyframes cf-mc-in{from{opacity:.4}}
@media (prefers-reduced-motion:no-preference){
${R} .mc-item{animation:cf-mc-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(min(var(--i),4) * 0.07s)}
${R} .mc-inspect p{animation:cf-mc-in .25s ease both}
}
@media (prefers-reduced-motion:reduce){${R} *{transition:none}${R} .mc-tile.is-on{transform:none}${R} .mc-tile.is-on .mc-gem{transform:none}}
`;
pieces/content/milestone-collection/specimen.tsx 49 lines
import __studioImage58ab62e9 from "../assets/6f0d876e99a3e1e8.webp";
import __studioImageb26734b7 from "../assets/41d2264f13e13ab9.webp";
import __studioImage3a3650b4 from "../assets/a6cd5c308e7708fc.webp";
// Specimen: the fictional 30-Day Write Daily challenge's badge shelf: ten milestones, three already earned.
import React from "react";
import { MilestoneCollection, type MilestoneItem } from "../milestone-collection";
import defaults from "../../studio-defaults.json";
const oval = __studioImage58ab62e9;
const drop = __studioImageb26734b7;
const egg = __studioImage3a3650b4;
export const states = ["default", "hover", "active", "disabled"];
type State = "default" | "hover" | "active" | "disabled";
const ITEMS: MilestoneItem[] = [
{ name: "First Words", milestone: "Day 1", rule: "Publish your first 300 words.", tone: "accent", image: oval },
{ name: "Spark", milestone: "3-day streak", rule: "Write three days in a row.", tone: "warning", image: drop },
{ name: "Steady Hand", milestone: "Day 7", rule: "Write seven days running without a miss.", tone: "success", image: egg },
{ name: "Early Riser", milestone: "5 mornings", rule: "Finish a session before 9am on five days.", tone: "cta", image: oval, locked: true },
{ name: "Deep Draft", milestone: "1,000 words", rule: "Write 1,000 words in a single sitting.", tone: "blend", image: drop, locked: true },
{ name: "Halfway", milestone: "Day 15", rule: "Reach Day 15 with every day logged.", tone: "silver", image: egg, locked: true },
{ name: "Editor’s Eye", milestone: "First rewrite", rule: "Rework one draft from top to bottom.", tone: "accent", image: drop, locked: true },
{ name: "Out Loud", milestone: "Share a piece", rule: "Post one piece where a reader can see it.", tone: "warning", image: oval, locked: true },
{ name: "Ten Thousand", milestone: "10,000 words", rule: "Pass 10,000 words across the challenge.", tone: "success", image: egg, locked: true },
{ name: "Finisher", milestone: "Day 30", rule: "Write all 30 days. The one everyone wants.", tone: "cta", image: drop, locked: true },
];
export default function MilestoneCollectionDemo({ state = "default" }: { state?: State }) {
return (
<MilestoneCollection
headline="Unlock a badge for every milestone"
subline="Write every day for 30 days and watch your shelf fill up. Ten badges, each one earned with words on the page."
items={ITEMS}
hint="Hover or tap a badge to see how you earn it."
riskHeadline="Try it for 30 days, risk free."
riskText="Write daily and collect all ten badges. If the habit doesn’t stick, ask for a full refund within 30 days."
actionLabel="Join the challenge"
price={defaults.sample.price}
ps={
<>
<strong>P.S.</strong> Your first badge unlocks the day you write your first 300 words.
</>
}
state={state}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalMilestoneCollection |
React.ReactNode |
|
subline OptionalMilestoneCollection |
React.ReactNode |
|
items OptionalMilestoneCollection |
MilestoneItem[] |
|
defaultImage OptionalMilestoneCollection |
string |
|
hint OptionalMilestoneCollection |
string |
|
lockedText OptionalMilestoneCollection |
string |
|
unlockedText OptionalMilestoneCollection |
string |
|
riskHeadline OptionalMilestoneCollection |
React.ReactNode |
|
riskText OptionalMilestoneCollection |
React.ReactNode |
|
actionLabel OptionalMilestoneCollection |
string |
|
price OptionalMilestoneCollection |
string |
|
priceTemplate OptionalMilestoneCollection |
string |
|
ps OptionalMilestoneCollection |
React.ReactNode |
|
href OptionalMilestoneCollection |
string |
|
onAction OptionalMilestoneCollection |
() => void |
|
disabled OptionalMilestoneCollection |
boolean |
|
state OptionalMilestoneCollection |
"default" | "hover" | "active" | "disabled" |
|
className OptionalMilestoneCollection |
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-ink--button-2-shadow- Secondary button.
--card-radius- Cards and panels: radius, border 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.
-
41d2264f13e13ab9.webp
image/webp · 89.8 KB
-
6f0d876e99a3e1e8.webp
image/webp · 183 KB
-
a6cd5c308e7708fc.webp
image/webp · 85.4 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB
-
f6a8de367400456e.webp
image/webp · 14.6 KB