Reasons Countdown 1
Reasons countdown: counts three reasons down 3-2-1 on a sticky stage. A giant numeral rolls inside an angled
Use it in a prompt
Use content/reasons-countdown 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/reasons-countdown.tsx. - Import it and pass your copy and images (Props tab):
import { ReasonsCountdown } from "@/components/funneldna/content/reasons-countdown"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/reasons-countdown/component.tsx 571 lines
// layout: diagonal-split
// Reasons countdown: counts three reasons down 3-2-1 on a sticky stage. A giant numeral rolls inside an angled
// colour field while the reason crossfades beside it, and the strongest reason lands on 1 in the accent role.
import React, { useEffect, useRef, useState } from "react";
import { Spot } from "../fx/fx";
import shield from "../fx/spots/shield";
import clock from "../fx/spots/clock";
import star from "../fx/spots/star";
export type CountdownReason = {
/** Short reason headline, set in big type. */
title: React.ReactNode;
/** Optional bold lead-in phrase that opens the sentence. */
lead?: React.ReactNode;
/** One sentence that backs the headline. */
body?: React.ReactNode;
/** Spot illustration: an imported fx spot asset URL. Omit it for no illustration. */
spot?: string;
};
export type ReasonsCountdownProps = {
/** Optional section headline above the stage. */
headline?: React.ReactNode;
/** Reasons in reading order. The last one is the strongest and lands on 1. */
reasons?: CountdownReason[];
copy?: {
/** Accessible label for each dot. {number} is replaced with that reason's numeral. */
dotLabel?: string;
/** Accessible label for the row of dots. */
dotsLabel?: string;
};
/** Let the stage overhang the band's bottom edge into the next section. */
overhang?: boolean;
/** In the "disabled" state the dots only track progress and cannot be clicked. */
state?: "default" | "disabled";
className?: string;
};
const DEFAULT_REASONS: CountdownReason[] = [
{
title: "It holds up to everyday use",
lead: "Built for the routine.",
body: "It is made for daily use, so it still works the way it did on day one.",
spot: shield,
},
{
title: "It's made with care, not shortcuts",
lead: "Every step done properly.",
body: "Nothing is rushed, so nothing gives out before it should.",
spot: clock,
},
{
title: "You keep it for years, not months",
lead: "Buy it once.",
body: "Keep using it instead of replacing it again next year.",
spot: star,
},
];
// The sticky stage needs a wide, tall viewport, motion allowed, and a page that really scrolls.
const STAGE_QUERY = "(min-width: 768px) and (min-height: 560px) and (prefers-reduced-motion: no-preference)";
// Pixels of scroll the page must already have before the stage adds its short runway.
const MIN_ROOM = 8;
export function ReasonsCountdown({
headline = "Why this one is built to last",
reasons = DEFAULT_REASONS,
copy,
overhang = false,
state = "default",
className,
}: ReasonsCountdownProps) {
const dotLabel = copy?.dotLabel ?? "Show reason {number}";
const dotsLabel = copy?.dotsLabel ?? "Choose a reason";
const disabled = state === "disabled";
const n = reasons.length;
const [stage, setStage] = useState(false);
const [active, setActive] = useState(0);
const rootRef = useRef<HTMLElement>(null);
const trackRef = useRef<HTMLDivElement>(null);
const cardRef = useRef<HTMLDivElement>(null);
const anchorRefs = useRef<Array<HTMLSpanElement | null>>([]);
const headId = React.useId();
// Stage only where it can scroll: a fit-to-content preview frame or a page with no scroll room
// keeps the full static list, so there is never a blank runway.
useEffect(() => {
if (n < 2) return;
const mq = window.matchMedia(STAGE_QUERY);
let frame = 0;
const evaluate = () => {
frame = 0;
const root = rootRef.current;
const next = mq.matches && !!root && scrollRoom(root) > MIN_ROOM;
setStage((prev) => (prev === next ? prev : next));
};
const schedule = () => {
if (!frame) frame = requestAnimationFrame(evaluate);
};
schedule();
mq.addEventListener("change", schedule);
window.addEventListener("resize", schedule);
const ro = typeof ResizeObserver !== "undefined" ? new ResizeObserver(schedule) : null;
ro?.observe(document.documentElement);
return () => {
if (frame) cancelAnimationFrame(frame);
mq.removeEventListener("change", schedule);
window.removeEventListener("resize", schedule);
ro?.disconnect();
};
}, [n]);
useEffect(() => {
if (!stage || n < 2) return;
let frame = 0;
let top = 0;
let step = 1;
const measure = () => {
const card = cardRef.current;
const a0 = anchorRefs.current[0];
const a1 = anchorRefs.current[1];
top = card ? parseFloat(getComputedStyle(card).top) || 0 : 0;
step = a0 && a1 ? Math.max(1, a1.offsetTop - a0.offsetTop) : 1;
};
const read = () => {
frame = 0;
const track = trackRef.current;
if (!track) return;
const scrolled = top - track.getBoundingClientRect().top;
const k = Math.min(n - 1, Math.max(0, Math.round(scrolled / step)));
setActive((prev) => (prev === k ? prev : k));
};
const onScroll = () => {
if (!frame) frame = requestAnimationFrame(read);
};
const onResize = () => {
measure();
onScroll();
};
measure();
read();
document.addEventListener("scroll", onScroll, { passive: true, capture: true });
window.addEventListener("resize", onResize);
return () => {
if (frame) cancelAnimationFrame(frame);
document.removeEventListener("scroll", onScroll, true);
window.removeEventListener("resize", onResize);
};
}, [stage, n]);
if (n === 0) return null;
const current = Math.min(active, n - 1);
const Title = headline ? "h3" : "h2";
const go = (i: number) => {
if (disabled) return;
setActive(i);
if (stage) anchorRefs.current[i]?.scrollIntoView({ block: "start", inline: "nearest", behavior: "smooth" });
};
return (
<section
ref={rootRef}
className={["cf-reasons-countdown", className].filter(Boolean).join(" ")}
data-stage={stage ? "" : undefined}
data-overhang={overhang ? "" : undefined}
aria-labelledby={headline ? headId : undefined}
style={{ ["--rc-n" as string]: n } as React.CSSProperties}
>
<style>{CSS}</style>
<div className="rc-wrap">
{headline ? (
<div className="rc-head">
<h2 id={headId} className="rc-headline">{headline}</h2>
</div>
) : null}
<div className="rc-track" ref={trackRef}>
{reasons.map((_, i) => (
<span
key={i}
className="rc-anchor"
aria-hidden="true"
ref={(el) => {
anchorRefs.current[i] = el;
}}
style={{ ["--i" as string]: i } as React.CSSProperties}
/>
))}
<div className="rc-card" ref={cardRef} data-final={current === n - 1 ? "" : undefined}>
<div className="rc-field" aria-hidden="true">
<span className="rc-layer rc-layer-band" />
<span className="rc-layer rc-layer-accent" />
<span className="rc-reel-window">
<span className="rc-reel-mask">
<span className="rc-reel" style={{ ["--rc-shift" as string]: n - 1 - current } as React.CSSProperties}>
{reasons.map((_, p) => (
<span key={p} className={p === 0 ? "rc-reel-num is-final" : "rc-reel-num"}>{p + 1}</span>
))}
</span>
</span>
</span>
</div>
<div className="rc-pane">
<ol className="rc-list">
{reasons.map((r, i) => {
const final = i === n - 1;
return (
<li key={i} className={final ? "rc-item is-final" : "rc-item"} data-on={i === current ? "" : undefined}>
<div className="rc-swatch">
<span className="rc-num">{n - i}</span>
</div>
<div className="rc-body">
{r.spot ? (
<span className="rc-spot">
<Spot src={r.spot} size={80} />
</span>
) : null}
<Title className="rc-title">{r.title}</Title>
{r.lead || r.body ? (
<p className="rc-text">
{r.lead ? <strong>{r.lead}</strong> : null}
{r.lead && r.body ? " " : null}
{r.body}
</p>
) : null}
</div>
</li>
);
})}
</ol>
{n > 1 ? (
<div className="rc-dots" role="group" aria-label={dotsLabel}>
{reasons.map((_, i) => (
<button
key={i}
type="button"
className={i === n - 1 ? "rc-dot is-final" : "rc-dot"}
aria-label={dotLabel.replace("{number}", String(n - i))}
aria-current={i === current ? "step" : undefined}
disabled={disabled}
onClick={() => go(i)}
/>
))}
</div>
) : null}
</div>
</div>
<span className="rc-spacer" aria-hidden="true" />
</div>
</div>
</section>
);
}
export default ReasonsCountdown;
/** Largest scroll distance available to the piece: the document or any scrolling ancestor. */
function scrollRoom(el: HTMLElement): number {
let room = 0;
for (let p = el.parentElement; p; p = p.parentElement) {
const oy = getComputedStyle(p).overflowY;
if (oy === "auto" || oy === "scroll" || oy === "overlay") room = Math.max(room, p.scrollHeight - p.clientHeight);
}
const doc = document.scrollingElement || document.documentElement;
return Math.max(room, doc.scrollHeight - doc.clientHeight);
}
const CSS = `
.cf-reasons-countdown {
--rc-pad-t: clamp(48px, 7vw, 96px);
--rc-pad-b: clamp(48px, 7vw, 96px);
--rc-over: clamp(32px, 5vw, 64px);
--rc-gutter: clamp(16px, 5vw, 48px);
--rc-radius: var(--card-radius, var(--radius, 14px));
position: relative;
z-index: 1;
background: var(--surface);
color: var(--ink);
font-family: var(--font-body);
padding: var(--rc-pad-t) var(--rc-gutter) var(--rc-pad-b);
overflow-x: clip;
}
.cf-reasons-countdown *, .cf-reasons-countdown *::before, .cf-reasons-countdown *::after { box-sizing: border-box; }
.cf-reasons-countdown .rc-wrap { max-inline-size: 1120px; margin-inline: auto; min-width: 0; }
.cf-reasons-countdown .rc-head { max-inline-size: 46rem; margin-bottom: clamp(24px, 3.2vw, 40px); }
.cf-reasons-countdown .rc-headline {
margin: 0;
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;
color: var(--ink);
text-wrap: balance;
overflow-wrap: break-word;
}
.cf-reasons-countdown .rc-track { position: relative; min-width: 0; }
.cf-reasons-countdown[data-overhang] .rc-track { margin-bottom: calc(-1 * (var(--rc-pad-b) + var(--rc-over))); }
.cf-reasons-countdown .rc-anchor,
.cf-reasons-countdown .rc-spacer,
.cf-reasons-countdown .rc-field,
.cf-reasons-countdown .rc-dots { display: none; }
.cf-reasons-countdown .rc-card {
position: relative;
container-type: inline-size;
container-name: rc;
background: var(--card);
color: var(--ink);
border: 1px solid var(--card-border, oklch(from var(--ink) l c h / 0.12));
border-radius: var(--rc-radius);
box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(0.22 0.03 260 / 0.22), 0 12px 24px -8px oklch(0.22 0.03 260 / 0.32)));
overflow: clip;
}
.cf-reasons-countdown .rc-pane { min-width: 0; }
.cf-reasons-countdown .rc-list {
list-style: none;
margin: 0;
padding: 0;
display: grid;
grid-template-columns: auto minmax(0, 1fr);
min-width: 0;
}
.cf-reasons-countdown .rc-item {
position: relative;
grid-column: 1 / -1;
display: grid;
grid-template-columns: subgrid;
min-width: 0;
}
.cf-reasons-countdown .rc-item + .rc-item { border-top: 1px solid oklch(from var(--ink) l c h / 0.12); }
.cf-reasons-countdown .rc-swatch {
--rc-s: clamp(12px, 3cqi, 28px);
position: relative;
isolation: isolate;
display: flex;
align-items: flex-start;
justify-content: center;
min-width: 0;
padding: clamp(16px, 3cqi, 28px) calc(var(--rc-s) + clamp(12px, 2.4cqi, 24px)) clamp(16px, 3cqi, 28px) clamp(14px, 2.4cqi, 28px);
color: var(--band-ink);
}
.cf-reasons-countdown .rc-swatch::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background: var(--band);
clip-path: polygon(0 0, 100% 0, calc(100% - var(--rc-s)) 100%, 0 100%);
}
.cf-reasons-countdown .rc-item.is-final .rc-swatch { color: var(--accent-fill-ink, var(--card)); }
.cf-reasons-countdown .rc-item.is-final .rc-swatch::before { background: var(--accent-fill, var(--accent)); }
.cf-reasons-countdown .rc-num {
display: block;
min-inline-size: 0.62em;
text-align: center;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: clamp(3.25rem, 20cqi, 7.5rem);
line-height: 1;
letter-spacing: -0.04em;
font-variant-numeric: tabular-nums;
}
.cf-reasons-countdown .rc-body {
display: grid;
grid-template-columns: minmax(0, 1fr);
align-content: start;
min-width: 0;
padding: clamp(20px, 3.2cqi, 36px);
}
.cf-reasons-countdown .rc-spot { display: block; line-height: 0; margin-bottom: 12px; justify-self: start; }
.cf-reasons-countdown .rc-title {
margin: 0;
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(1.375rem, 3.6cqi, 2.5rem);
line-height: 1.1;
color: var(--ink);
text-wrap: balance;
overflow-wrap: break-word;
}
.cf-reasons-countdown .rc-item.is-final .rc-title { color: var(--accent); }
.cf-reasons-countdown .rc-text {
margin: 12px 0 0;
max-inline-size: 60ch;
font-size: clamp(1.0625rem, 1.6cqi, 1.125rem);
line-height: 1.5;
font-weight: 400;
color: var(--muted);
text-wrap: pretty;
overflow-wrap: break-word;
}
.cf-reasons-countdown .rc-text strong { color: var(--ink); font-weight: 700; }
@container rc (min-width: 640px) {
.cf-reasons-countdown .rc-body { grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; }
.cf-reasons-countdown .rc-spot { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: start; }
.cf-reasons-countdown .rc-title { grid-column: 1; grid-row: 1; }
.cf-reasons-countdown .rc-text { grid-column: 1; grid-row: 2; }
}
/* Phone: the numeral becomes a slanted tag across the top of each reason, so the copy gets the full card width. */
@container rc (max-width: 559px) {
.cf-reasons-countdown .rc-list { grid-template-columns: minmax(0, 1fr); }
.cf-reasons-countdown .rc-item {
grid-column: 1;
grid-template-columns: auto minmax(0, 1fr);
column-gap: 16px;
align-items: start;
padding-bottom: 28px;
}
.cf-reasons-countdown .rc-swatch {
--rc-s: 18px;
grid-column: 1;
grid-row: 1;
align-self: start;
justify-content: flex-start;
padding: 12px calc(var(--rc-s) + 20px) 12px 20px;
}
.cf-reasons-countdown .rc-num { font-size: 3rem; letter-spacing: -0.03em; }
.cf-reasons-countdown .rc-body { display: contents; }
.cf-reasons-countdown .rc-spot { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; margin: 8px 16px 0 0; }
.cf-reasons-countdown .rc-title {
grid-column: 1 / -1;
grid-row: 2;
margin: 16px 20px 0;
font-size: clamp(1.375rem, 6.6cqi, 1.75rem);
line-height: 1.12;
}
.cf-reasons-countdown .rc-text { grid-column: 1 / -1; grid-row: 3; margin: 12px 20px 0; max-inline-size: none; }
}
.cf-reasons-countdown .rc-dot {
appearance: none;
border: 0;
margin: 0;
padding: 0;
inline-size: 30px;
block-size: 44px;
display: grid;
place-items: center;
background: transparent;
border-radius: 999px;
cursor: pointer;
}
.cf-reasons-countdown .rc-dot::before {
content: "";
inline-size: 10px;
block-size: 10px;
border-radius: 999px;
background: color-mix(in oklch, var(--ink) 50%, var(--card));
transition: transform 0.16s ease, background-color 0.16s ease;
}
.cf-reasons-countdown .rc-dot:hover::before { background: color-mix(in oklch, var(--ink) 78%, var(--card)); transform: scale(1.15); }
.cf-reasons-countdown .rc-dot:active::before { transform: scale(0.85); }
.cf-reasons-countdown .rc-dot[aria-current="step"]::before { background: var(--ink); transform: scale(1.4); }
.cf-reasons-countdown .rc-dot.is-final[aria-current="step"]::before { background: var(--accent); }
.cf-reasons-countdown .rc-dot:focus-visible { outline: 3px solid var(--field-focus, var(--accent)); outline-offset: 2px; }
.cf-reasons-countdown .rc-dot:disabled { cursor: default; }
.cf-reasons-countdown .rc-dot:disabled:not([aria-current="step"])::before { background: color-mix(in oklch, var(--ink) 50%, var(--card)); transform: none; }
.cf-reasons-countdown .rc-dot:disabled[aria-current="step"]::before { transform: scale(1.4); }
/* Sticky stage: set by script only on a wide, tall, motion-allowed viewport whose page really scrolls.
Runway = (n - 0.5) short steps, so each reason gets one step of scroll and nothing is left blank after 1. */
.cf-reasons-countdown[data-stage] {
--rc-stage-h: min(32rem, calc(100vh - 3rem));
--rc-top: max(1rem, calc((100vh - var(--rc-stage-h)) / 2));
--rc-step: clamp(160px, 24vh, 240px);
}
.cf-reasons-countdown[data-stage] .rc-anchor {
display: block;
position: absolute;
left: 0;
top: calc(var(--i) * var(--rc-step));
inline-size: 1px;
block-size: 1px;
pointer-events: none;
scroll-margin-top: var(--rc-top);
}
.cf-reasons-countdown[data-stage] .rc-spacer { display: block; block-size: calc((var(--rc-n) - 0.5) * var(--rc-step)); }
.cf-reasons-countdown[data-stage] .rc-card {
--rc-slant: clamp(28px, 5cqi, 64px);
position: sticky;
top: var(--rc-top);
min-height: var(--rc-stage-h);
display: grid;
grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
}
.cf-reasons-countdown[data-stage] .rc-field { display: block; position: relative; grid-column: 1; grid-row: 1; z-index: 0; min-width: 0; }
.cf-reasons-countdown[data-stage] .rc-layer {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: calc(-1 * var(--rc-slant));
clip-path: polygon(0 0, 100% 0, calc(100% - 2 * var(--rc-slant)) 100%, 0 100%);
}
.cf-reasons-countdown[data-stage] .rc-layer-band { background: var(--band); }
.cf-reasons-countdown[data-stage] .rc-layer-accent { background: var(--accent-fill, var(--accent)); opacity: 0; transition: opacity 0.5s ease; }
.cf-reasons-countdown[data-stage] .rc-card[data-final] .rc-layer-accent { opacity: 1; }
.cf-reasons-countdown[data-stage] .rc-reel-window { position: absolute; inset: 0; display: grid; place-items: center; overflow: clip; }
.cf-reasons-countdown[data-stage] .rc-reel-mask {
display: block;
block-size: 1.04em;
overflow: clip;
font-size: clamp(7rem, 26cqi, 20rem);
line-height: 1.04;
}
.cf-reasons-countdown[data-stage] .rc-reel {
display: block;
transform: translate3d(0, calc(var(--rc-shift) * -1.04em), 0);
transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
will-change: transform;
}
.cf-reasons-countdown[data-stage] .rc-reel-num {
display: block;
block-size: 1.04em;
text-align: center;
white-space: nowrap;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
letter-spacing: -0.04em;
font-variant-numeric: tabular-nums;
color: var(--band-ink);
}
.cf-reasons-countdown[data-stage] .rc-reel-num.is-final { color: var(--accent-fill-ink, var(--card)); }
.cf-reasons-countdown[data-stage] .rc-pane {
grid-column: 2;
grid-row: 1;
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
padding: clamp(32px, 4.5cqi, 56px) clamp(28px, 4.5cqi, 64px) clamp(20px, 3cqi, 32px) calc(var(--rc-slant) + clamp(24px, 3.5cqi, 48px));
}
.cf-reasons-countdown[data-stage] .rc-list { flex: 1; grid-template-columns: minmax(0, 1fr); align-items: center; }
.cf-reasons-countdown[data-stage] .rc-item {
grid-column: 1;
grid-row: 1;
display: block;
border: 0;
opacity: 0;
transform: translate3d(0, 8px, 0);
transition: opacity 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
pointer-events: none;
}
.cf-reasons-countdown[data-stage] .rc-item[data-on] { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0.07s; }
.cf-reasons-countdown[data-stage] .rc-swatch {
position: absolute;
inline-size: 1px;
block-size: 1px;
padding: 0;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.cf-reasons-countdown[data-stage] .rc-swatch::before { display: none; }
.cf-reasons-countdown[data-stage] .rc-body { padding: 0; grid-template-columns: minmax(0, 1fr); }
.cf-reasons-countdown[data-stage] .rc-spot,
.cf-reasons-countdown[data-stage] .rc-title,
.cf-reasons-countdown[data-stage] .rc-text { grid-column: 1; grid-row: auto; }
.cf-reasons-countdown[data-stage] .rc-spot { margin: 0 0 clamp(16px, 2.2cqi, 24px); }
.cf-reasons-countdown[data-stage] .rc-title { font-size: clamp(1.875rem, 4.2cqi, 3.25rem); line-height: 1.06; }
.cf-reasons-countdown[data-stage] .rc-text { font-size: clamp(1.125rem, 1.7cqi, 1.375rem); line-height: 1.45; font-weight: 500; margin-top: clamp(12px, 1.4cqi, 16px); }
.cf-reasons-countdown[data-stage] .rc-dots { display: flex; gap: 2px; margin: clamp(16px, 2.4cqi, 24px) 0 0 -10px; }
`;
pieces/content/reasons-countdown/specimen.tsx 35 lines
import ReasonsCountdown from "../reasons-countdown";
import shield from "../../fx/spots/shield";
import lock from "../../fx/spots/lock";
import star from "../../fx/spots/star";
export const states = ["default", "disabled"];
export default function ReasonsCountdownSpecimen({ state = "default" }: { state?: string }) {
return (
<ReasonsCountdown
state={state === "disabled" ? "disabled" : "default"}
headline="Three reasons a Fernhollow mug outlasts the one in your cupboard"
reasons={[
{
title: "The clay is fired until it turns to stone",
lead: "Fired twice, hot and slow.",
body: "The second firing seals the body, so it won't soak up coffee or craze under a boiling pour.",
spot: shield,
},
{
title: "The glaze is part of the mug, not a coat on it",
lead: "Melted in, not painted on.",
body: "It fuses into the clay in the kiln, so there's no layer to chip or wear thin in the dishwasher.",
spot: lock,
},
{
title: "The handle is pulled from the mug's own clay",
lead: "One piece, start to finish.",
body: "It's drawn by hand from the same body and fired with it, so there's no glued seam to work loose.",
spot: star,
},
]}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalReasonsCountdown |
React.ReactNode |
Default "Why this one is built to last"
|
reasons OptionalReasonsCountdown |
CountdownReason[] |
Default DEFAULT_REASONS
|
copy OptionalReasonsCountdown |
{
/** Accessible label for each dot. {number} is replaced with that reason's numeral. */
dotLabel?: string;
/** Accessible label for the row of dots. */
dotsLabel?: string;
} |
|
overhang OptionalReasonsCountdown |
boolean |
Default false
|
state OptionalReasonsCountdown |
"default" | "disabled" |
Default "default"
|
className OptionalReasonsCountdown |
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.
--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.
This piece reads no image slots.
-
4788bc008c79471c.webp
image/webp · 13.9 KB
-
7c36d7f4dd4ae594.webp
image/webp · 26.5 KB
-
7d6f1c81c93d8f71.webp
image/webp · 18.2 KB
-
f6a8de367400456e.webp
image/webp · 14.6 KB