Vertical Word Scroller 1
Vertical word scroller: one big founder line ("Built for ___") whose slot word rolls like a drum through every
Use it in a prompt
Use content/vertical-word-scroller 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/vertical-word-scroller.tsx. - Import it and pass your copy and images (Props tab):
import { VerticalWordScroller } from "@/components/funneldna/content/vertical-word-scroller"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/vertical-word-scroller/component.tsx 596 lines
// layout: quote-led
// Vertical word scroller: one big founder line ("Built for ___") whose slot word rolls like a drum through every
// audience the offer serves, so each visitor sees it was made for them. A word row lets the reader lock their own.
import * as React from "react";
import { Lock, Pause, Play } from "lucide-react";
import { Divider, FX_HOST, Texture } from "../fx/fx";
import linen from "../fx/textures/linen";
type DividerTone = React.ComponentProps<typeof Divider>["tone"];
export type VerticalWordScrollerProps = {
/** Words before the slot, e.g. "Built for". */
before?: string;
/** The endings the slot rolls through; the widest one sets the slot's measure. */
words?: string[];
/** Text after the slot. Starts with punctuation or a leading space when it continues the sentence. */
after?: string;
/** One short supporting line under the sentence. */
lead?: string;
/** Short question in front of the word row. */
pickPrompt?: string;
presenterName?: string;
presenterRole?: string;
/** presenter-cutout slot: transparent cut-out of the person who says the line. */
presenterImage?: string;
presenterImageAlt?: string;
/** Shown in the slot when no words are supplied. */
emptyWord?: string;
/** Joins the last two words in the reduced-motion list and the screen-reader sentence. */
conjunction?: string;
pauseLabel?: string;
playLabel?: string;
/** Accessible name of the word row when there is no prompt. */
pickGroupLabel?: string;
/** Milliseconds each word rests in the slot. */
interval?: number;
/** dark = --band stage, light = quiet grey band. */
tone?: "dark" | "light";
/** Stepped hand-off edge at the bottom of the band. */
edge?: boolean;
/** Token of the section below, coloured into the step edge. */
nextTone?: DividerTone;
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
const DEFAULT_WORDS = ["coaches", "creators", "makers", "shop owners"];
const EDGE = 56;
export function VerticalWordScroller({
before = "Built for",
words = DEFAULT_WORDS,
after = ".",
lead = "The same plan, shaped around the work you already do.",
pickPrompt = "Which one are you?",
presenterName = "",
presenterRole = "",
presenterImage,
presenterImageAlt = "",
emptyWord = "you",
conjunction = "and",
pauseLabel = "Pause",
playLabel = "Play",
pickGroupLabel = "Choose a word to hold in the sentence",
interval = 1900,
tone = "dark",
edge = false,
nextTone = "surface",
state = "default",
className,
}: VerticalWordScrollerProps) {
const list = React.useMemo(() => words.map((w) => w.trim()).filter(Boolean), [words]);
const n = list.length;
const shown = n ? list : [emptyWord];
const count = shown.length;
const interactive = state !== "disabled";
const canPick = n > 1;
const initHover = state === "hover" && canPick ? 1 : null;
const initLock = state === "active" && canPick ? Math.min(2, n - 1) : null;
const pause = Math.max(900, interval);
const rootRef = React.useRef<HTMLElement>(null);
const promptId = React.useId();
const reduced = useReducedMotion();
const [hover, setHover] = React.useState<number | null>(initHover);
const [locked, setLocked] = React.useState<number | null>(initLock);
const [auto, setAuto] = React.useState(0);
const [paused, setPaused] = React.useState(false);
const [inView, setInView] = React.useState(false);
const [pageVisible, setPageVisible] = React.useState(true);
React.useEffect(() => {
setHover(initHover);
setLocked(initLock);
setPaused(false);
setAuto(0);
}, [initHover, initLock]);
const inRange = (i: number | null) => (i !== null && i >= 0 && i < count ? i : null);
const chosen = inRange(hover) ?? inRange(locked);
const target = chosen ?? auto % count;
const [view, setView] = React.useState({ cur: target, out: -1, dir: 1 });
React.useEffect(() => {
setView((v) => (v.cur === target ? v : { cur: target, out: v.cur, dir: target === v.out ? -1 : 1 }));
}, [target]);
React.useEffect(() => {
const el = rootRef.current;
if (!el || typeof IntersectionObserver === "undefined") {
setInView(true);
return;
}
const io = new IntersectionObserver(([entry]) => setInView(entry.isIntersecting), { threshold: 0.25 });
io.observe(el);
return () => io.disconnect();
}, []);
React.useEffect(() => {
const onVis = () => setPageVisible(document.visibilityState !== "hidden");
onVis();
document.addEventListener("visibilitychange", onVis);
return () => document.removeEventListener("visibilitychange", onVis);
}, []);
const running = canPick && interactive && !reduced && !paused && chosen === null && inView && pageVisible;
React.useEffect(() => {
if (!running) return;
const t = window.setTimeout(() => setAuto((a) => (a + 1) % count), pause);
return () => window.clearTimeout(t);
}, [running, auto, count, pause]);
const preview = (i: number) => {
if (interactive) setHover(i);
};
const release = (i: number) => {
setHover((h) => (h === i ? null : h));
if (locked === null) setAuto(i);
};
const toggle = (i: number) => {
if (!interactive) return;
if (locked === i) {
setLocked(null);
setAuto(i);
} else {
setLocked(i);
}
};
const stopped = paused || locked !== null;
const onToggleMotion = () => {
if (stopped) {
setPaused(false);
if (locked !== null) {
setAuto(locked);
setLocked(null);
}
} else {
setPaused(true);
}
};
const pos = (i: number) =>
i === view.cur ? "is-on" : i === view.out ? (view.dir > 0 ? "is-up" : "is-down") : "is-wait";
const [glue, rest] = splitAfter(after);
const lead1 = before ? `${before} ` : "";
const sentence = `${lead1}${joinList(shown, conjunction)}${after}`;
const hasFig = Boolean(presenterImage);
const hasSign = Boolean(presenterName || presenterRole);
const rootStyle = { ...FX_HOST, "--vws-pause": `${pause}ms` } as React.CSSProperties;
return (
<section
ref={rootRef}
className={["cf-vertical-word-scroller", className].filter(Boolean).join(" ")}
data-tone={tone}
data-edge={edge ? "on" : "off"}
style={rootStyle}
>
<style>{CSS}</style>
<div className="vws-tex" aria-hidden="true">
<Texture src={linen} tone={tone === "dark" ? "band-ink" : "ink"} />
</div>
<div className={hasFig ? "vws-inner has-fig" : "vws-inner"}>
<div className="vws-say">
<h2 className="vws-h">
<span className="vws-sr">{sentence}</span>
<span className="vws-drumline" aria-hidden="true">
{lead1}
<span className="vws-glue">
<span className="vws-window">
{shown.map((w, i) => (
<span key={i} className={`vws-word ${pos(i)}`}>
{w}
</span>
))}
</span>
{glue}
</span>
{rest}
</span>
<span className="vws-listline" aria-hidden="true">
{lead1}
{shown.map((w, i) => (
<React.Fragment key={i}>
{i > 0 ? (i === count - 1 ? ` ${conjunction} ` : ", ") : null}
<span className={chosen === i ? "vws-pick is-chosen" : "vws-pick"}>{w}</span>
</React.Fragment>
))}
{after}
</span>
</h2>
</div>
{lead ? <p className="vws-lead">{lead}</p> : null}
{canPick ? (
<div
className="vws-row"
role="group"
aria-labelledby={pickPrompt ? promptId : undefined}
aria-label={pickPrompt ? undefined : pickGroupLabel}
>
{pickPrompt ? (
<span id={promptId} className="vws-prompt">
{pickPrompt}
</span>
) : null}
<ul className="vws-chips">
{list.map((w, i) => (
<li key={i} className="vws-chip-li">
<button
type="button"
className={hover === i ? "vws-chip is-preview" : "vws-chip"}
aria-pressed={locked === i}
disabled={!interactive}
onPointerEnter={(e) => {
if (e.pointerType === "mouse") preview(i);
}}
onPointerLeave={(e) => {
if (e.pointerType === "mouse") release(i);
}}
onFocus={() => preview(i)}
onBlur={() => release(i)}
onClick={() => toggle(i)}
>
{locked === i ? <Lock className="vws-lock" size={16} strokeWidth={2.5} aria-hidden="true" /> : null}
<span>{w}</span>
{running && i === auto % count ? <span key={`bar-${auto}`} className="vws-bar" aria-hidden="true" /> : null}
</button>
</li>
))}
</ul>
{interactive ? (
<button type="button" className="vws-chip vws-toggle" onClick={onToggleMotion}>
{stopped ? (
<Play size={16} strokeWidth={2.5} aria-hidden="true" />
) : (
<Pause size={16} strokeWidth={2.5} aria-hidden="true" />
)}
<span>{stopped ? playLabel : pauseLabel}</span>
</button>
) : null}
</div>
) : null}
{hasSign ? (
<p className="vws-sign">
{presenterName ? <span className="vws-name">{presenterName}</span> : null}
{presenterRole ? <span className="vws-role">{presenterRole}</span> : null}
</p>
) : null}
{hasFig ? (
<div className="vws-fig">
<img src={presenterImage} alt={presenterImageAlt} width={720} height={720} loading="lazy" decoding="async" />
</div>
) : null}
</div>
{edge ? (
<div className="vws-edge" aria-hidden="true">
<Divider shape="step" tone={nextTone} height={EDGE} />
</div>
) : null}
</section>
);
}
export default VerticalWordScroller;
function useReducedMotion() {
const [reduced, setReduced] = React.useState(false);
React.useEffect(() => {
if (typeof window === "undefined" || !window.matchMedia) return;
const mq = window.matchMedia("(prefers-reduced-motion: reduce)");
const on = () => setReduced(mq.matches);
on();
mq.addEventListener("change", on);
return () => mq.removeEventListener("change", on);
}, []);
return reduced;
}
function splitAfter(after: string): [string, string] {
let k = 0;
while (k < after.length && ".,!?;:…)”’'".includes(after[k])) k += 1;
return [after.slice(0, k), after.slice(k)];
}
function joinList(items: string[], conjunction: string) {
if (items.length < 2) return items.join("");
return `${items.slice(0, -1).join(", ")} ${conjunction} ${items[items.length - 1]}`;
}
const CSS = `
.cf-vertical-word-scroller {
--vws-shadow: var(--shadow, oklch(0.22 0.03 260));
--vws-edge: 0px;
position: relative;
isolation: isolate;
overflow: clip;
container: vws / inline-size;
padding-block: clamp(56px, 8vw, 112px) calc(clamp(64px, 8.5vw, 120px) + var(--vws-edge));
padding-inline: clamp(16px, 5vw, 48px);
background: var(--vws-bg);
color: var(--vws-ink);
font-family: var(--font-body, system-ui, sans-serif);
}
.cf-vertical-word-scroller[data-edge="on"] { --vws-edge: 56px; }
.cf-vertical-word-scroller[data-tone="dark"] {
--vws-bg: var(--band, #14233f);
--vws-ink: var(--band-ink, #ffffff);
--vws-chip-ink: var(--band-ink, #ffffff);
--vws-chip: oklch(from var(--band-ink, #ffffff) l c h / 0.1);
--vws-chip-hover: oklch(from var(--band-ink, #ffffff) l c h / 0.18);
--vws-chip-line: oklch(from var(--band-ink, #ffffff) l c h / 0.24);
--vws-ring: var(--band-ink, #ffffff);
--vws-bar: var(--band-ink, #ffffff);
}
.cf-vertical-word-scroller[data-tone="light"] {
--vws-bg: color-mix(in oklch, var(--ink, #101828) 4%, var(--surface, #ffffff));
--vws-ink: var(--ink, #101828);
--vws-chip-ink: var(--ink, #101828);
--vws-chip: var(--card, #ffffff);
--vws-chip-hover: color-mix(in oklch, var(--ink, #101828) 6%, var(--card, #ffffff));
--vws-chip-line: oklch(from var(--ink, #101828) l c h / 0.16);
--vws-ring: var(--field-focus, var(--accent, #2457c5));
--vws-bar: var(--accent-fill, var(--accent, #2457c5));
}
.cf-vertical-word-scroller *, .cf-vertical-word-scroller *::before, .cf-vertical-word-scroller *::after { box-sizing: border-box; }
.cf-vertical-word-scroller .vws-tex { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cf-vertical-word-scroller .vws-edge { position: absolute; inset-inline: 0; bottom: 0; height: 56px; z-index: 1; pointer-events: none; }
.cf-vertical-word-scroller .vws-inner {
position: relative;
z-index: 1;
max-inline-size: 1120px;
margin-inline: auto;
display: grid;
grid-template-columns: minmax(0, 1fr);
grid-template-areas: "say" "lead" "pick" "sign";
align-content: start;
}
.cf-vertical-word-scroller .vws-inner.has-fig {
grid-template-columns: minmax(0, 1fr) minmax(0, clamp(240px, 34%, 420px));
grid-template-rows: auto auto auto 1fr;
grid-template-areas: "say fig" "lead fig" "pick fig" "sign fig";
column-gap: clamp(32px, 5vw, 72px);
}
.cf-vertical-word-scroller .vws-inner > * { min-width: 0; }
.cf-vertical-word-scroller .vws-say { grid-area: say; container-type: inline-size; min-width: 0; }
.cf-vertical-word-scroller .vws-h {
margin: 0;
font-family: var(--font-display, var(--font-body, system-ui, sans-serif));
font-weight: var(--display-weight, 800);
letter-spacing: var(--display-tracking, -0.025em);
text-transform: var(--display-case, none);
font-size: clamp(2.5rem, 5.4vw, 4.875rem);
font-size: clamp(2.5rem, 11cqi, 4.875rem);
line-height: 1.08;
text-wrap: balance;
overflow-wrap: break-word;
hyphens: manual;
color: var(--vws-ink);
}
.cf-vertical-word-scroller .vws-sr {
position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.cf-vertical-word-scroller .vws-drumline { display: inline; }
.cf-vertical-word-scroller .vws-listline { display: none; }
.cf-vertical-word-scroller .vws-glue { white-space: nowrap; }
.cf-vertical-word-scroller .vws-window {
position: relative;
display: inline-grid;
vertical-align: baseline;
max-inline-size: calc(100% - 0.45em);
margin-inline: 0.04em 0.02em;
padding: 0.03em 0.2em 0.07em;
border: 1px solid oklch(from var(--ink, #101828) l c h / 0.12);
border-radius: var(--radius, 12px);
background: var(--card, #ffffff);
color: var(--accent, #2457c5);
box-shadow:
inset 0 1px 0 oklch(from var(--card, #ffffff) calc(l + 0.04) c h / 0.6),
0 1px 2px oklch(from var(--vws-shadow) l c h / 0.28),
0 10px 18px -8px oklch(from var(--vws-shadow) l c h / 0.42);
overflow: clip;
perspective: 4em;
text-align: center;
white-space: normal;
}
.cf-vertical-word-scroller .vws-window::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
background: linear-gradient(
to bottom,
oklch(from var(--vws-shadow) l c h / 0.16),
oklch(from var(--vws-shadow) l c h / 0) 30%,
oklch(from var(--vws-shadow) l c h / 0) 70%,
oklch(from var(--vws-shadow) l c h / 0.16)
);
}
.cf-vertical-word-scroller .vws-word {
grid-area: 1 / 1;
justify-self: center;
min-width: 0;
white-space: normal;
overflow-wrap: anywhere;
hyphens: auto;
backface-visibility: hidden;
will-change: transform, opacity;
transition: transform 0.62s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.38s ease;
}
.cf-vertical-word-scroller .vws-word.is-on { transform: none; opacity: 1; }
.cf-vertical-word-scroller .vws-word.is-up { transform: translateY(-110%) rotateX(58deg); opacity: 0; }
.cf-vertical-word-scroller .vws-word.is-down,
.cf-vertical-word-scroller .vws-word.is-wait { transform: translateY(110%) rotateX(-58deg); opacity: 0; }
.cf-vertical-word-scroller .vws-pick { border-radius: calc(var(--radius, 12px) * 0.75); }
.cf-vertical-word-scroller .vws-pick.is-chosen {
padding-inline: 0.16em;
background: var(--card, #ffffff);
color: var(--accent, #2457c5);
box-shadow: var(--shadow-sm, 0 1px 3px oklch(0.22 0.03 260 / 0.2));
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
.cf-vertical-word-scroller .vws-lead {
grid-area: lead;
margin: clamp(16px, 2vw, 28px) 0 0;
max-inline-size: 52ch;
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
font-weight: 500;
line-height: 1.4;
text-wrap: pretty;
color: var(--vws-ink);
}
.cf-vertical-word-scroller .vws-row {
grid-area: pick;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px 16px;
margin-top: 32px;
min-width: 0;
}
.cf-vertical-word-scroller .vws-prompt { font-size: 0.9375rem; font-weight: 700; line-height: 1.4; color: var(--vws-ink); }
.cf-vertical-word-scroller .vws-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.cf-vertical-word-scroller .vws-chip-li { min-width: 0; max-inline-size: 100%; }
.cf-vertical-word-scroller .vws-chip {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
max-inline-size: 100%;
min-height: 44px;
padding: 0 16px;
border: 1px solid var(--vws-chip-line, var(--button-2-border, transparent));
border-radius: 999px;
background: var(--vws-chip, var(--button-2-bg, var(--secondary, oklch(0.93 0.015 263))));
color: var(--vws-chip-ink, var(--button-2-ink, var(--secondary-ink, #101828)));
font-family: var(--font-body, system-ui, sans-serif);
font-size: 0.9375rem;
font-weight: 700;
line-height: 1.2;
text-align: center;
overflow: hidden;
overflow-wrap: anywhere;
cursor: pointer;
transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.cf-vertical-word-scroller .vws-chip.is-preview:not(:disabled) { background: var(--vws-chip-hover); transform: translateY(-1px); }
@media (hover: hover) {
.cf-vertical-word-scroller .vws-chip:not(:disabled):hover { background: var(--vws-chip-hover); transform: translateY(-1px); }
}
.cf-vertical-word-scroller .vws-chip:not(:disabled):active { transform: translateY(1px); }
.cf-vertical-word-scroller .vws-chip:focus-visible { outline: 3px solid var(--vws-ring); outline-offset: 2px; }
.cf-vertical-word-scroller .vws-chip:disabled { cursor: not-allowed; opacity: 0.55; }
.cf-vertical-word-scroller .vws-chip .vws-lock { flex: 0 0 auto; color: var(--accent, #2457c5); }
.cf-vertical-word-scroller[data-tone="dark"] .vws-chip[aria-pressed="true"] {
border-color: transparent;
background: var(--card, #ffffff);
color: var(--ink, #101828);
box-shadow: var(--shadow-sm, 0 1px 3px oklch(0.22 0.03 260 / 0.2));
}
.cf-vertical-word-scroller[data-tone="light"] .vws-chip[aria-pressed="true"] {
border-color: oklch(from var(--accent, #2457c5) l c h / 0.55);
background: color-mix(in oklch, var(--accent, #2457c5) 12%, var(--card, #ffffff));
color: var(--ink, #101828);
box-shadow: var(--shadow-sm, 0 1px 3px oklch(0.22 0.03 260 / 0.2));
}
.cf-vertical-word-scroller .vws-chip.vws-toggle {
border-color: var(--button-2-border, transparent);
background: var(--button-2-bg, var(--secondary, oklch(0.93 0.015 263)));
color: var(--button-2-ink, var(--secondary-ink, #101828));
box-shadow: var(--button-2-shadow, var(--shadow-sm, 0 1px 3px oklch(0.22 0.03 260 / 0.2)));
}
@media (hover: hover) {
.cf-vertical-word-scroller .vws-chip.vws-toggle:not(:disabled):hover {
background: oklch(from var(--button-2-bg, var(--secondary, oklch(0.93 0.015 263))) calc(l - 0.05) c h);
}
}
.cf-vertical-word-scroller .vws-chip.vws-toggle:not(:disabled):active {
background: oklch(from var(--button-2-bg, var(--secondary, oklch(0.93 0.015 263))) calc(l - 0.08) c h);
}
.cf-vertical-word-scroller .vws-bar {
position: absolute;
inset-inline: 14px;
bottom: 6px;
height: 3px;
border-radius: 3px;
background: var(--vws-bar);
transform-origin: left center;
animation: cf-vws-fill var(--vws-pause, 1.9s) linear both;
}
@keyframes cf-vws-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cf-vertical-word-scroller .vws-sign { grid-area: sign; display: grid; gap: 2px; margin: 32px 0 0; color: var(--vws-ink); }
.cf-vertical-word-scroller .vws-name { font-size: 1.0625rem; font-weight: 800; line-height: 1.3; }
.cf-vertical-word-scroller .vws-role { font-size: 0.9375rem; font-weight: 500; line-height: 1.4; }
.cf-vertical-word-scroller .vws-fig {
grid-area: fig;
position: relative;
z-index: 2;
align-self: end;
margin-block-end: calc(-1 * clamp(64px, 8.5vw, 120px));
}
.cf-vertical-word-scroller .vws-fig img {
display: block;
inline-size: 100%;
block-size: auto;
max-block-size: 600px;
object-fit: contain;
object-position: bottom center;
border-radius: 0;
filter: drop-shadow(0 2px 3px oklch(from var(--vws-shadow) l c h / 0.3)) drop-shadow(0 14px 16px oklch(from var(--vws-shadow) l c h / 0.24));
}
@container vws (max-width: 720px) {
.cf-vertical-word-scroller .vws-inner.has-fig {
grid-template-columns: minmax(0, 132px) minmax(0, 1fr);
grid-template-rows: none;
grid-template-areas: "say say" "lead lead" "pick pick" "fig sign";
column-gap: 16px;
}
.cf-vertical-word-scroller .vws-fig { margin-block: 32px calc(-1 * clamp(64px, 8.5vw, 120px)); align-self: end; }
.cf-vertical-word-scroller .vws-inner.has-fig .vws-sign { align-self: center; margin-top: 24px; }
.cf-vertical-word-scroller .vws-prompt { flex-basis: 100%; }
.cf-vertical-word-scroller .vws-row { margin-top: 28px; gap: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
.cf-vertical-word-scroller .vws-drumline { display: none; }
.cf-vertical-word-scroller .vws-listline { display: inline; }
.cf-vertical-word-scroller .vws-word,
.cf-vertical-word-scroller .vws-chip { transition: none; }
.cf-vertical-word-scroller .vws-chip:not(:disabled):hover,
.cf-vertical-word-scroller .vws-chip.is-preview:not(:disabled),
.cf-vertical-word-scroller .vws-chip:not(:disabled):active { transform: none; }
.cf-vertical-word-scroller .vws-toggle,
.cf-vertical-word-scroller .vws-bar { display: none; }
}
`;
pieces/content/vertical-word-scroller/specimen.tsx 25 lines
import __studioImage58b4f413 from "../assets/946c460d7833ad9b.webp";
import VerticalWordScroller, { type VerticalWordScrollerProps } from "../vertical-word-scroller";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled"];
export default function VerticalWordScrollerSpecimen({ state = "default" }: { state?: VerticalWordScrollerProps["state"] }) {
return (
<VerticalWordScroller
state={state}
before="Built for"
words={["bakers", "florists", "coaches", "makers"]}
after="."
lead="Counter, shelf and order tools from Stem & Sill, set up around the way your shop already works."
pickPrompt="Which one is you?"
presenterName="Ines Varga"
presenterRole="Founder, Stem & Sill"
presenterImage={slot(
"presenter-cutout",
__studioImage58b4f413
)}
presenterImageAlt="Ines Varga, founder of Stem & Sill"
/>
);
}
| Name | Type | Details |
|---|---|---|
before OptionalVerticalWordScroller |
string |
Default "Built for"
|
words OptionalVerticalWordScroller |
string[] |
Default DEFAULT_WORDS
|
after OptionalVerticalWordScroller |
string |
Default "."
|
lead OptionalVerticalWordScroller |
string |
Default "The same plan, shaped around the work you already do."
|
pickPrompt OptionalVerticalWordScroller |
string |
Default "Which one are you?"
|
presenterName OptionalVerticalWordScroller |
string |
Default ""
|
presenterRole OptionalVerticalWordScroller |
string |
Default ""
|
presenterImage OptionalVerticalWordScroller |
string |
|
presenterImageAlt OptionalVerticalWordScroller |
string |
Default ""
|
emptyWord OptionalVerticalWordScroller |
string |
Default "you"
|
conjunction OptionalVerticalWordScroller |
string |
Default "and"
|
pauseLabel OptionalVerticalWordScroller |
string |
Default "Pause"
|
playLabel OptionalVerticalWordScroller |
string |
Default "Play"
|
pickGroupLabel OptionalVerticalWordScroller |
string |
Default "Choose a word to hold in the sentence"
|
interval OptionalVerticalWordScroller |
number |
Default 1900
|
tone OptionalVerticalWordScroller |
"dark" | "light" |
Default "dark"
|
edge OptionalVerticalWordScroller |
boolean |
Default false
|
nextTone OptionalVerticalWordScroller |
DividerTone |
Default "surface"
|
state OptionalVerticalWordScroller |
"default" | "hover" | "active" | "disabled" |
Default "default"
|
className OptionalVerticalWordScroller |
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-2-bg--button-2-border--button-2-ink--button-2-shadow- Secondary button.
--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.
presenter-cutout- The presenter on a transparent background.
-
2c539f422023a290.webp
image/webp · 115 KB
-
946c460d7833ad9b.webp
image/webp · 76.7 KB