Bundle Picker 5
Bring-a-friend pass picker for a live event: pass cards fanned like a hand on a dark stage, each with the
Use it in a prompt
Use offer/bundle-picker-5 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/offer/bundle-picker-5.tsx. - Import it and pass your copy and images (Props tab):
import { BundlePicker5 } from "@/components/funneldna/offer/bundle-picker-5"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/bundle-picker-5/component.tsx 1151 lines
// layout: card-fan
// Bring-a-friend pass picker for a live event: pass cards fanned like a hand on a dark stage, each with the
// per-person price worked out from the supplied bundle price, so coming together makes the yes easier.
'use client'
import * as React from 'react'
import { AlertCircle, Loader2, ShieldCheck, UserRound, UsersRound } from 'lucide-react'
import { Backdrop, FX_HOST, Spot } from '../fx/fx'
import stage from '../fx/backdrops/stage'
import community from '../fx/spots/community'
export type BundlePicker5Bundle = {
/** Bundle name shown on the card and in the button, e.g. 2-Pass. */
name: string
/** Number of people (passes) the bundle covers. */
people: number
/** Total bundle price in the chosen currency; the per-person price is worked out from it. */
price: number
/** Generated pass image for this bundle (item slot). */
image?: string
imageAlt?: string
/** Seats left in this bundle; shown only when supplied. */
seatsLeft?: number
/** Marks the bundle sold out; only when supplied. */
soldOut?: boolean
/** Value passed back for this bundle; defaults to the people count. */
id?: string
}
export type BundlePicker5State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
/** Facts about the chosen bundle, passed to function labels. */
export type BundlePicker5Context = {
name: string
people: number
passWord: string
total: string
perPerson: string
savings: string
friends: number
}
/**
* Copy templates. Named placeholders are replaced as text: {name}, {people}, {passWord}, {total}, {perPerson},
* {base} (the smallest bundle's per-person price), {savings}, {friends}, {friendWord}, {crew}, {seats}, {seatWord}
* and, in more, {count}.
*/
export type BundlePicker5Copy = typeof DEFAULT_COPY
export type BundlePicker5Props = {
headline?: string
/** Phrase inside the headline that gets the marker stroke. */
highlight?: string
/** Letter opening, e.g. Dear friend. */
salutation?: string
/** Short letter paragraphs in the host's voice. */
letter?: React.ReactNode[]
signOff?: string
/** Host's name under the letter; empty hides it. */
signatureName?: string
signatureRole?: string
bundles?: BundlePicker5Bundle[]
/** Index active on load; defaults to the middle bundle. */
defaultSelected?: number
/** ISO currency code for every price. */
currency?: string
/** Locale used to format prices. */
locale?: string
/** Main button line: a template (copy placeholders) or a function of the chosen bundle. */
buttonLabel?: string | ((ctx: BundlePicker5Context) => string)
/** Benefit line inside the button: a template or a function of the chosen bundle. */
buttonSub?: string | ((ctx: BundlePicker5Context) => string)
/** Button text while onSubmit is pending. */
loadingLabel?: string
/** Shown only on the bundle with the lowest per-person price by the supplied prices. */
bestValueLabel?: string
/** Supplied guarantee under the button; empty hides it. */
guarantee?: string
/** fx backdrop photo behind the stage (an imported backdrop asset); empty hides it. */
backdrop?: string
/** Illustration on a card that has no pass image (an imported fx spot asset). */
placeholderArt?: string
/** Shown when onSubmit rejects. */
errorMessage?: string
/** Forces a preview state; error shows the inline message. */
state?: BundlePicker5State
/** Called whenever a bundle becomes the top card. */
onSelect?: (bundle: BundlePicker5Bundle, index: number) => void
/** Called with the chosen bundle. A rejected promise shows the inline error. */
onSubmit?: (bundle: BundlePicker5Bundle, index: number) => void | Promise<void>
copy?: Partial<BundlePicker5Copy>
className?: string
style?: React.CSSProperties
}
type Status = 'idle' | 'loading' | 'error'
export function BundlePicker5(props: BundlePicker5Props) {
const {
headline = 'Bring a friend and everyone pays less',
highlight = 'everyone pays less',
salutation = 'Dear friend,',
letter = DEFAULT_LETTER,
signOff = 'See you there,',
signatureName = '',
signatureRole = '',
bundles = DEFAULT_BUNDLES,
defaultSelected,
currency = 'USD',
locale = 'en-US',
buttonLabel = 'Yes! Book My {name}',
buttonSub = '{perPerson} per person · {people} {passWord}',
loadingLabel = 'Reserving your passes…',
bestValueLabel = 'Lowest price per person',
guarantee = '',
backdrop = stage,
placeholderArt = community,
errorMessage = 'We couldn’t reserve those passes. Please try again.',
state,
onSelect,
onSubmit,
copy,
className,
style,
} = props
const text: BundlePicker5Copy = { ...DEFAULT_COPY, ...copy }
const uid = React.useId()
const titleId = `${uid}-title`
const legendId = `${uid}-legend`
const hintId = `${uid}-hint`
const errorId = `${uid}-error`
const money = React.useCallback((n: number) => formatMoney(n, locale, currency), [locale, currency])
const rows = React.useMemo(() => {
const valid = bundles.filter((b) => b.people > 0)
const base = valid.reduce<BundlePicker5Bundle | undefined>((m, b) => (!m || b.people < m.people ? b : m), undefined)
const basePer = base ? base.price / base.people : 0
return bundles.map((b) => {
const per = b.people > 0 ? b.price / b.people : b.price
const raw = basePer * b.people - b.price
return { per, basePer, savings: raw > 0.005 ? raw : 0 }
})
}, [bundles])
const bestIndex = React.useMemo(() => {
if (rows.length < 2) return -1
const min = Math.min(...rows.map((r) => r.per))
const hits = rows.filter((r) => Math.abs(r.per - min) < 0.005)
if (hits.length !== 1 || !(min < rows[0].basePer - 0.005)) return -1
return rows.findIndex((r) => Math.abs(r.per - min) < 0.005)
}, [rows])
const [active, setActive] = React.useState(() => startIndex(bundles, defaultSelected))
const [status, setStatus] = React.useState<Status>(state === 'error' ? 'error' : 'idle')
const [announce, setAnnounce] = React.useState('')
const [drag, setDrag] = React.useState(0)
React.useEffect(() => {
setStatus(state === 'error' ? 'error' : 'idle')
}, [state])
const alive = React.useRef(true)
React.useEffect(() => {
alive.current = true
return () => {
alive.current = false
}
}, [])
const cards = React.useRef<(HTMLButtonElement | null)[]>([])
const pointer = React.useRef<{ id: number; x: number; moved: boolean } | null>(null)
const suppressUntil = React.useRef(0)
if (!bundles.length) return null
const index = Math.min(Math.max(active, 0), bundles.length - 1)
const bundle = bundles[index]
const row = rows[index]
const disabled = state === 'disabled'
const loading = status === 'loading'
const forced = state === 'hover' || state === 'active' ? state : undefined
const anyOpen = bundles.some((b) => !b.soldOut)
const hasChips = bundles.some((b) => b.soldOut || typeof b.seatsLeft === 'number')
const isOpen = (i: number) => i >= 0 && i < bundles.length && !bundles[i].soldOut
const passWord = (n: number) => (n === 1 ? text.passOne : text.passOther)
const friendWord = (n: number) => (n === 1 ? text.friendOne : text.friendOther)
const crewFor = (n: number) => (n <= 1 ? text.crewSolo : fill(text.crewMany, { friends: n - 1, friendWord: friendWord(n - 1) }))
const varsFor = (i: number) => {
const b = bundles[i]
const r = rows[i]
return {
name: b.name,
people: b.people,
passWord: passWord(b.people),
total: money(b.price),
perPerson: money(r.per),
base: money(r.basePer),
savings: money(r.savings),
friends: Math.max(0, b.people - 1),
friendWord: friendWord(Math.max(0, b.people - 1)),
crew: crewFor(b.people),
}
}
const vars = varsFor(index)
const ctx: BundlePicker5Context = {
name: vars.name,
people: vars.people,
passWord: vars.passWord,
total: vars.total,
perPerson: vars.perPerson,
savings: vars.savings,
friends: vars.friends,
}
const label = typeof buttonLabel === 'function' ? buttonLabel(ctx) : fill(buttonLabel, vars)
const sub = !anyOpen ? text.soldOutButton : typeof buttonSub === 'function' ? buttonSub(ctx) : fill(buttonSub, vars)
const buttonDisabled = disabled || !anyOpen || Boolean(bundle.soldOut)
const choose = (i: number, focus = false) => {
if (disabled || loading || !isOpen(i)) return
if (focus) cards.current[i]?.focus()
if (i === index) return
setActive(i)
if (status === 'error') setStatus('idle')
setAnnounce(fill(text.live, varsFor(i)))
onSelect?.(bundles[i], i)
}
const step = (dir: 1 | -1, focus = false) => {
let j = index + dir
while (j >= 0 && j < bundles.length && !isOpen(j)) j += dir
if (j >= 0 && j < bundles.length) choose(j, focus)
}
const edge = (dir: 1 | -1) => {
let j = dir === 1 ? bundles.length - 1 : 0
while (j >= 0 && j < bundles.length && !isOpen(j)) j -= dir
if (j >= 0 && j < bundles.length) choose(j, true)
}
const onKey = (e: React.KeyboardEvent<HTMLButtonElement>) => {
if (e.key === 'ArrowRight' || e.key === 'ArrowDown') {
e.preventDefault()
step(1, true)
} else if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') {
e.preventDefault()
step(-1, true)
} else if (e.key === 'Home') {
e.preventDefault()
edge(-1)
} else if (e.key === 'End') {
e.preventDefault()
edge(1)
}
}
const onPointerDown = (e: React.PointerEvent<HTMLDivElement>) => {
if (disabled || loading || (e.pointerType === 'mouse' && e.button !== 0)) return
pointer.current = { id: e.pointerId, x: e.clientX, moved: false }
}
const onPointerMove = (e: React.PointerEvent<HTMLDivElement>) => {
const p = pointer.current
if (!p || p.id !== e.pointerId) return
const dx = e.clientX - p.x
if (!p.moved && Math.abs(dx) > 8) {
p.moved = true
try {
e.currentTarget.setPointerCapture(e.pointerId)
} catch {
// capture is an enhancement only
}
}
if (p.moved) setDrag(dx)
}
const endDrag = (e: React.PointerEvent<HTMLDivElement>, cancel = false) => {
const p = pointer.current
if (!p || p.id !== e.pointerId) return
const dx = e.clientX - p.x
pointer.current = null
setDrag(0)
if (!p.moved) return
suppressUntil.current = e.timeStamp + 400
if (!cancel && Math.abs(dx) > 48) step(dx < 0 ? 1 : -1)
}
const onClickCapture = (e: React.MouseEvent<HTMLDivElement>) => {
if (e.timeStamp < suppressUntil.current) {
suppressUntil.current = 0
e.preventDefault()
e.stopPropagation()
}
}
const handleSubmit = async (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault()
if (buttonDisabled || loading || !onSubmit) return
setStatus('loading')
try {
await onSubmit(bundle, index)
if (alive.current) setStatus('idle')
} catch {
if (alive.current) setStatus('error')
}
}
const faces = bundle.people > 6 ? 5 : Math.max(1, bundle.people)
const extra = Math.max(0, bundle.people - faces)
const nudgeIndex =
bundle.people === 1 ? rows.findIndex((r, i) => isOpen(i) && bundles[i].people > 1 && r.per < row.per - 0.005) : -1
return (
<section
className={cx('cf-bundle-picker-5', className)}
style={{ ...FX_HOST, ...style }}
aria-labelledby={titleId}
>
<style>{CSS}</style>
{backdrop ? <Backdrop src={backdrop} treatment="scrim-dark" side="right" /> : null}
<div className="bp5-wrap">
<div className="bp5-head bp5-rise">
<h2 id={titleId} className="bp5-title">
{renderHeadline(headline, highlight)}
</h2>
</div>
<div className="bp5-fan">
<p id={legendId} className="bp5-sr">
{text.legend}
</p>
<div
className={cx('bp5-stage', drag !== 0 && 'is-dragging', disabled && 'is-disabled')}
role="radiogroup"
aria-labelledby={legendId}
aria-describedby={hintId}
style={{ '--drag': `${clamp(drag * 0.6, -140, 140)}px` } as React.CSSProperties}
onPointerDown={onPointerDown}
onPointerMove={onPointerMove}
onPointerUp={(e) => endDrag(e)}
onPointerCancel={(e) => endDrag(e, true)}
onClickCapture={onClickCapture}
>
{bundles.map((b, i) => {
const o = i - index
const a = Math.abs(o)
const x = Math.sign(o) * (Math.min(a, 1) + Math.max(a - 1, 0) * 0.45)
const v = varsFor(i)
const on = i === index
return (
<button
key={b.id ?? `${b.name}-${i}`}
ref={(el) => {
cards.current[i] = el
}}
type="button"
role="radio"
aria-checked={on}
aria-label={fill(text.cardLabel, v)}
tabIndex={on ? 0 : -1}
disabled={disabled || Boolean(b.soldOut)}
className={cx('bp5-card', on && 'is-on', b.soldOut && 'is-out')}
data-side={o < 0 ? 'left' : o > 0 ? 'right' : 'center'}
style={
{
'--x': x,
'--a': Math.min(a, 3),
zIndex: 30 - a,
opacity: a > 2 ? 0 : 1,
pointerEvents: a > 2 ? 'none' : undefined,
} as React.CSSProperties
}
onClick={() => choose(i)}
onKeyDown={onKey}
>
{i === bestIndex && bestValueLabel ? <span className="bp5-flag">{bestValueLabel}</span> : null}
{b.image ? (
<img
className="bp5-shot"
src={b.image}
alt={b.imageAlt ?? b.name}
draggable={false}
loading={a > 1 ? 'lazy' : 'eager'}
decoding="async"
/>
) : (
<span className="bp5-shot bp5-shot-empty" aria-hidden>
{placeholderArt ? <Spot src={placeholderArt} size={112} /> : <UsersRound size={24} strokeWidth={2.5} />}
</span>
)}
<span className="bp5-body">
<span className="bp5-name">{b.name}</span>
<span className="bp5-meta">
<UsersRound size={16} strokeWidth={2.5} aria-hidden />
{v.crew}
</span>
<span className="bp5-price">
<b>{v.perPerson}</b> {text.perPerson}
</span>
{hasChips ? (
<span className="bp5-chips">
{b.soldOut ? (
<span className="bp5-chip is-out">{text.soldOut}</span>
) : typeof b.seatsLeft === 'number' ? (
<span className="bp5-chip">
{fill(text.seatsLeft, {
seats: b.seatsLeft,
seatWord: b.seatsLeft === 1 ? text.seatOne : text.seatOther,
})}
</span>
) : null}
</span>
) : null}
</span>
</button>
)
})}
</div>
<div className="bp5-dots" aria-hidden>
{bundles.map((b, i) => (
<span key={b.id ?? `${b.name}-${i}`} className={cx('bp5-dot', i === index && 'is-on')} />
))}
</div>
<p id={hintId} className="bp5-hint">
{text.hint}
</p>
<p className="bp5-sr" aria-live="polite">
{announce}
</p>
</div>
<div className="bp5-letter bp5-rise" style={{ '--d': '.07s' } as React.CSSProperties}>
{salutation ? <p className="bp5-salute">{salutation}</p> : null}
{letter.map((p, i) => (
<p key={i}>{p}</p>
))}
{signOff || signatureName ? (
<div className="bp5-sign">
{signOff ? <p className="bp5-sign-off">{signOff}</p> : null}
{signatureName ? <p className="bp5-sign-name">{signatureName}</p> : null}
{signatureRole ? <p className="bp5-sign-role">{signatureRole}</p> : null}
</div>
) : null}
</div>
<form
className="bp5-close bp5-rise"
style={{ '--d': '.14s' } as React.CSSProperties}
onSubmit={handleSubmit}
noValidate
>
<div className="bp5-deal">
<div className="bp5-tag">
<span className="bp5-hole" aria-hidden />
<div key={index} className="bp5-swap">
{row.savings > 0 ? <s className="bp5-was">{fill(text.was, vars)}</s> : null}
<span className="bp5-now">{vars.perPerson}</span>
<span className="bp5-per">{text.perPerson}</span>
<span className="bp5-total">{fill(text.total, vars)}</span>
{row.savings > 0 ? <span className="bp5-save">{fill(text.save, vars)}</span> : null}
</div>
</div>
<div className="bp5-crew">
<p className="bp5-crew-title">{vars.crew}</p>
<ul className="bp5-faces" aria-hidden>
{Array.from({ length: faces }, (_, i) => (
<li key={i} className={cx('bp5-face', i === 0 && 'is-you')}>
<UserRound size={20} strokeWidth={2.5} />
</li>
))}
{extra > 0 ? <li className="bp5-face">{fill(text.more, { count: extra })}</li> : null}
</ul>
{index === bestIndex && bestValueLabel ? <p className="bp5-best">{bestValueLabel}</p> : null}
<p className="bp5-crew-note">
{nudgeIndex >= 0 ? fill(text.nudge, varsFor(nudgeIndex)) : text.crewNote}
</p>
</div>
</div>
<button
type="submit"
className={cx('bp5-cta', forced === 'hover' && 'is-hover', forced === 'active' && 'is-active')}
disabled={buttonDisabled}
aria-busy={loading || undefined}
aria-describedby={status === 'error' ? errorId : undefined}
>
<span className="bp5-cta-main">
{loading ? <Loader2 className="bp5-spin" size={20} strokeWidth={2.5} aria-hidden /> : null}
<span>{loading ? loadingLabel : label}</span>
</span>
<span className="bp5-cta-sub">{sub}</span>
</button>
{status === 'error' ? (
<p id={errorId} className="bp5-error" role="alert">
<AlertCircle size={18} strokeWidth={2.5} aria-hidden />
{errorMessage}
</p>
) : null}
{guarantee ? (
<p className="bp5-note">
<ShieldCheck size={16} strokeWidth={2.5} aria-hidden />
{guarantee}
</p>
) : null}
</form>
</div>
</section>
)
}
export default BundlePicker5
const DEFAULT_COPY = {
legend: 'Choose your passes',
hint: 'Drag, swipe or tap a pass to compare',
crewSolo: 'Just you',
crewMany: 'You + {friends} {friendWord}',
friendOne: 'friend',
friendOther: 'friends',
passOne: 'pass',
passOther: 'passes',
perPerson: 'per person',
was: '{base} each',
total: '{total} for {people} {passWord}',
save: 'Your group saves {savings}',
nudge: 'Bring a friend and it drops to {perPerson} each with the {name}.',
crewNote: 'Everyone gets their own pass.',
seatsLeft: '{seats} {seatWord} left',
seatOne: 'seat',
seatOther: 'seats',
soldOut: 'Sold out',
soldOutButton: 'Every bundle is sold out',
more: '+{count}',
cardLabel: '{name}: {crew}, {perPerson} per person, {total} total',
live: '{name} selected: {perPerson} per person, {total} total',
}
const DEFAULT_LETTER: React.ReactNode[] = [
'Live events are better with someone you know beside you.',
'You split the trip, compare notes on the breaks and keep each other going after it ends.',
'So every pass costs less per person when you come together. Pick who’s coming with you.',
]
const DEFAULT_BUNDLES: BundlePicker5Bundle[] = [
{ name: 'Solo Pass', people: 1, price: 297 },
{ name: '2-Pass', people: 2, price: 498 },
{ name: 'Group of 5', people: 5, price: 1095 },
]
function startIndex(list: BundlePicker5Bundle[], preferred?: number) {
const n = list.length
const open = (i: number) => i >= 0 && i < n && !list[i].soldOut
if (typeof preferred === 'number' && open(preferred)) return preferred
const mid = Math.floor((n - 1) / 2)
for (let d = 0; d < n; d++) {
if (open(mid + d)) return mid + d
if (open(mid - d)) return mid - d
}
return Math.max(0, Math.min(mid, n - 1))
}
function fill(template: string, vars: Record<string, string | number>) {
return Object.keys(vars).reduce((s, k) => s.split(`{${k}}`).join(String(vars[k])), template)
}
function formatMoney(n: number, locale: string, currency: string) {
const whole = Math.abs(n - Math.round(n)) < 0.005
try {
return new Intl.NumberFormat(locale, {
style: 'currency',
currency,
minimumFractionDigits: whole ? 0 : 2,
maximumFractionDigits: whole ? 0 : 2,
}).format(whole ? Math.round(n) : n)
} catch {
return String(Math.round(n * 100) / 100)
}
}
function clamp(n: number, lo: number, hi: number) {
return Math.min(hi, Math.max(lo, n))
}
function cx(...parts: (string | false | null | undefined)[]) {
return parts.filter(Boolean).join(' ')
}
function renderHeadline(headline: string, mark: string) {
if (!mark) return headline
const at = headline.indexOf(mark)
if (at < 0) return headline
return (
<>
{headline.slice(0, at)}
<span className="bp5-mark">{mark}</span>
{headline.slice(at + mark.length)}
</>
)
}
const CSS = `
.cf-bundle-picker-5 {
--bp5-soft: color-mix(in oklab, var(--band-ink, #fff) 84%, var(--band, oklch(0.27 0.067 256)));
--bp5-string: color-mix(in oklab, var(--band-ink, #fff) 62%, var(--band, oklch(0.27 0.067 256)));
--signature-font: var(--signature-face, var(--font-display, sans-serif));
--bp5-shadow: var(--shadow, oklch(0.22 0.03 260));
position: relative;
isolation: isolate;
overflow: hidden;
overflow: clip;
background: var(--band, oklch(0.27 0.067 256));
color: var(--band-ink, #fff);
font-family: var(--font-body, sans-serif);
padding: clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);
}
.cf-bundle-picker-5 *, .cf-bundle-picker-5 *::before, .cf-bundle-picker-5 *::after { box-sizing: border-box; }
.cf-bundle-picker-5 .bp5-sr {
position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
clip-path: inset(50%); white-space: nowrap; border: 0;
}
.cf-bundle-picker-5 .bp5-wrap {
position: relative;
z-index: 1;
max-width: 1120px;
margin: 0 auto;
display: grid;
grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
grid-template-areas: 'head head' 'fan letter' 'fan close';
grid-template-rows: auto auto 1fr;
column-gap: clamp(32px, 5vw, 72px);
align-items: start;
}
.cf-bundle-picker-5 .bp5-head { grid-area: head; margin-bottom: 8px; }
.cf-bundle-picker-5 .bp5-fan { grid-area: fan; min-width: 0; position: sticky; top: 24px; align-self: start; }
.cf-bundle-picker-5 .bp5-letter { grid-area: letter; }
.cf-bundle-picker-5 .bp5-close { grid-area: close; }
.cf-bundle-picker-5 .bp5-title {
margin: 0;
font-family: var(--font-display, sans-serif);
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, #fff);
}
.cf-bundle-picker-5 .bp5-mark {
/* on the dark band a yellow stroke would sink the light type, so the stroke is the accent fill
blended into the band (solid, never muddy); a page can set --marker-band to override */
--bp5-marker: var(--marker-band, color-mix(in oklab, var(--accent-fill, var(--accent, oklch(0.5 0.17 257))) 52%, var(--band, oklch(0.27 0.067 256))));
background-image: linear-gradient(
transparent 58%,
var(--bp5-marker) 58%,
var(--bp5-marker) 94%,
transparent 94%
);
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
padding: 0 0.06em;
border-radius: 0.12em;
}
.cf-bundle-picker-5 .bp5-letter {
margin-top: 24px;
max-width: 64ch;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.55;
}
.cf-bundle-picker-5 .bp5-letter p { margin: 0 0 12px; text-wrap: pretty; }
.cf-bundle-picker-5 .bp5-letter strong { font-weight: 700; }
.cf-bundle-picker-5 .bp5-salute { font-weight: 700; }
.cf-bundle-picker-5 .bp5-sign { margin-top: 16px; }
.cf-bundle-picker-5 .bp5-letter .bp5-sign-off { margin: 0; }
.cf-bundle-picker-5 .bp5-letter .bp5-sign-name {
margin: 4px 0 0;
font-family: var(--signature-font);
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
font-weight: 800;
line-height: 1.15;
letter-spacing: -0.01em;
}
.cf-bundle-picker-5 .bp5-letter .bp5-sign-role {
margin: 4px 0 0;
font-size: 0.9375rem;
font-weight: 500;
line-height: 1.4;
color: var(--bp5-soft);
}
/* fan stage */
.cf-bundle-picker-5 .bp5-stage {
--spread: clamp(120px, 12vw, 170px);
--tilt: 7deg;
--cw: 290px;
position: relative;
display: grid;
justify-items: center;
align-items: start;
padding: 40px 0 52px;
touch-action: pan-y;
-webkit-user-select: none;
user-select: none;
cursor: grab;
}
.cf-bundle-picker-5 .bp5-stage.is-dragging { cursor: grabbing; }
.cf-bundle-picker-5 .bp5-stage.is-disabled { cursor: default; }
.cf-bundle-picker-5 .bp5-card {
grid-area: 1 / 1;
position: relative;
display: flex;
flex-direction: column;
width: var(--cw);
max-width: 100%;
margin: 0;
padding: 8px 8px 16px;
border: 1px solid var(--card-border, oklch(from var(--ink, oklch(0.21 0.034 263)) l c h / 0.12));
border-radius: var(--card-radius, var(--radius, 14px));
background: var(--card, #fff);
color: var(--ink, oklch(0.21 0.034 263));
font: inherit;
text-align: left;
cursor: pointer;
/* a radio tile, not a button: card tokens for the surface; a sold-out tile reads the secondary-button ink */
--bp5-off-ink: var(--button-2-ink, var(--secondary-ink, oklch(0.21 0.034 263)));
box-shadow: var(--card-shadow, var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 260 / 0.2)));
transform-origin: 50% 115%;
transform:
translateX(calc(var(--x, 0) * var(--spread) + var(--drag, 0px)))
translateY(calc(var(--a, 0) * 20px + var(--lift, 0px)))
rotate(calc(var(--x, 0) * var(--tilt)))
scale(calc(1 - var(--a, 0) * 0.08));
transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.16s ease, opacity 0.3s ease;
-webkit-tap-highlight-color: transparent;
}
.cf-bundle-picker-5 .bp5-stage.is-dragging .bp5-card { transition: box-shadow 0.16s ease, opacity 0.3s ease; }
.cf-bundle-picker-5 .bp5-card.is-on {
--lift: -14px;
box-shadow:
inset 0 0 0 2px var(--accent-fill, var(--accent, oklch(0.5 0.17 257))),
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));
}
@media (hover: hover) {
.cf-bundle-picker-5 .bp5-card:not(.is-on):not(:disabled):hover { --lift: -10px; }
}
.cf-bundle-picker-5 .bp5-card:focus-visible {
outline: 3px solid var(--band-ink, #fff);
outline-offset: 4px;
}
.cf-bundle-picker-5 .bp5-card:disabled { cursor: not-allowed; }
.cf-bundle-picker-5 .bp5-card:disabled .bp5-body { color: var(--bp5-off-ink); }
@media (hover: hover) {
.cf-bundle-picker-5 .bp5-card:not(.is-on):not(:disabled):active { --lift: -4px; }
}
.cf-bundle-picker-5 .bp5-shot {
display: block;
width: 100%;
aspect-ratio: 4 / 5;
object-fit: cover;
object-position: 50% 45%;
border-radius: max(6px, calc(var(--card-radius, var(--radius, 14px)) - 4px));
background: color-mix(in oklch, var(--ink, oklch(0.21 0.034 263)) 4%, var(--card, #fff));
pointer-events: none;
-webkit-user-drag: none;
}
.cf-bundle-picker-5 .bp5-shot-empty { display: grid; place-items: center; color: var(--muted, oklch(0.45 0.03 258)); }
.cf-bundle-picker-5 .bp5-card.is-out .bp5-shot { filter: grayscale(1); }
.cf-bundle-picker-5 .bp5-body { display: grid; gap: 4px; padding: 16px 8px 0; transition: opacity 0.3s ease; }
.cf-bundle-picker-5 .bp5-name {
font-family: var(--font-display, sans-serif);
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
font-weight: var(--display-weight, 800);
line-height: 1.15;
letter-spacing: -0.01em;
text-transform: var(--display-case, none);
text-wrap: balance;
}
.cf-bundle-picker-5 .bp5-meta {
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.4;
color: var(--muted, oklch(0.45 0.03 258));
}
.cf-bundle-picker-5 .bp5-meta svg,
.cf-bundle-picker-5 .bp5-note svg,
.cf-bundle-picker-5 .bp5-error svg {
display: inline-block;
vertical-align: -0.15em;
margin-inline-end: 0.4em;
}
.cf-bundle-picker-5 .bp5-price { margin-top: 4px; font-size: 1.0625rem; font-weight: 500; line-height: 1.4; }
.cf-bundle-picker-5 .bp5-price b {
font-family: var(--font-display, sans-serif);
font-weight: 800;
font-variant-numeric: tabular-nums;
}
.cf-bundle-picker-5 .bp5-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 32px; margin-top: 8px; }
.cf-bundle-picker-5 .bp5-chip {
display: inline-flex;
align-items: center;
min-height: 28px;
padding: 4px 12px;
border-radius: 999px;
background: color-mix(in oklch, var(--ink, oklch(0.21 0.034 263)) 6%, var(--card, #fff));
color: var(--ink, oklch(0.21 0.034 263));
font-size: 0.875rem;
font-weight: 800;
line-height: 1.2;
}
.cf-bundle-picker-5 .bp5-chip.is-out {
background: var(--danger-soft, oklch(0.93 0.024 27));
color: var(--danger, oklch(0.5 0.17 27));
}
.cf-bundle-picker-5 .bp5-flag {
position: absolute;
z-index: 2;
top: -14px;
left: 50%;
transform: translateX(-50%);
display: inline-flex;
align-items: center;
min-height: 28px;
padding: 4px 12px;
border-radius: 999px;
background: var(--accent-fill, var(--accent, oklch(0.5 0.17 257)));
color: var(--accent-fill-ink, var(--card, #fff));
font-size: 0.875rem;
font-weight: 800;
line-height: 1.2;
white-space: nowrap;
box-shadow: var(--shadow-sm, 0 1px 1px oklch(0.22 0.03 260 / 0.18), 0 1px 3px oklch(0.22 0.03 260 / 0.14));
animation: bp5-pop 0.3s ease both;
}
/* a side card's flag would hide under the top card: only show it on wide screens, pinned to the card's open edge */
.cf-bundle-picker-5 .bp5-card:not(.is-on) .bp5-flag { display: none; }
@media (min-width: 1200px) {
.cf-bundle-picker-5 .bp5-card[data-side='left'] .bp5-flag,
.cf-bundle-picker-5 .bp5-card[data-side='right'] .bp5-flag {
display: inline-flex;
max-width: calc(var(--spread) - 28px);
white-space: normal;
text-wrap: balance;
transform: none;
}
.cf-bundle-picker-5 .bp5-card[data-side='left'] .bp5-flag { left: 12px; text-align: left; }
.cf-bundle-picker-5 .bp5-card[data-side='right'] .bp5-flag { left: auto; right: 12px; text-align: right; }
}
.cf-bundle-picker-5 .bp5-dots { display: flex; justify-content: center; gap: 8px; }
.cf-bundle-picker-5 .bp5-dot {
width: 24px;
height: 4px;
border-radius: 999px;
background: oklch(from var(--band-ink, #fff) l c h / 0.32);
transition: width 0.16s ease, background 0.16s ease;
}
.cf-bundle-picker-5 .bp5-dot.is-on { width: 40px; background: var(--accent-fill, var(--accent, oklch(0.5 0.17 257))); }
.cf-bundle-picker-5 .bp5-hint {
margin: 12px 0 0;
text-align: center;
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.4;
color: var(--bp5-soft);
text-wrap: pretty;
}
/* the deal: hang tag + crew */
.cf-bundle-picker-5 .bp5-close { margin: 40px 0 0; }
.cf-bundle-picker-5 .bp5-deal { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.cf-bundle-picker-5 .bp5-tag {
position: relative;
flex: 0 0 auto;
min-width: 13.5rem;
max-width: 100%;
margin-top: 28px;
padding: 44px 24px 24px;
border: 1px solid var(--card-border, oklch(from var(--ink, oklch(0.21 0.034 263)) l c h / 0.12));
border-radius: var(--card-radius, var(--radius, 14px));
background: var(--card, #fff);
color: var(--ink, oklch(0.21 0.034 263));
box-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));
text-align: center;
transform: rotate(-3deg);
transform-origin: 50% 0;
}
.cf-bundle-picker-5 .bp5-tag::before {
content: '';
position: absolute;
z-index: 1;
top: -30px;
left: 50%;
width: 2px;
height: 50px;
margin-left: -1px;
border-radius: 2px;
background: var(--bp5-string);
}
.cf-bundle-picker-5 .bp5-hole {
position: absolute;
top: 12px;
left: 50%;
width: 16px;
height: 16px;
margin-left: -8px;
border-radius: 999px;
background: var(--band, oklch(0.27 0.067 256));
border: 3px solid color-mix(in oklch, var(--ink, oklch(0.21 0.034 263)) 10%, var(--card, #fff));
}
.cf-bundle-picker-5 .bp5-swap { display: grid; justify-items: center; animation: bp5-rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.cf-bundle-picker-5 .bp5-was {
position: relative;
display: inline-block;
padding: 0 4px;
color: var(--muted, oklch(0.45 0.03 258));
font-family: var(--font-display, sans-serif);
font-size: 1.125rem;
font-weight: 800;
line-height: 1.2;
text-decoration: none;
font-variant-numeric: tabular-nums;
}
.cf-bundle-picker-5 .bp5-was::after {
content: '';
position: absolute;
left: -2px;
right: -2px;
top: 50%;
height: 0.14em;
margin-top: -0.07em;
border-radius: 0.2em;
background: var(--danger, oklch(0.5 0.17 27));
transform: rotate(-4deg);
}
.cf-bundle-picker-5 .bp5-now {
display: block;
margin-top: 14px;
font-family: var(--font-display, sans-serif);
font-size: clamp(2.5rem, 4.2vw, 3.75rem);
font-weight: var(--display-weight, 800);
line-height: 1;
letter-spacing: -0.03em;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.cf-bundle-picker-5 .bp5-per {
display: block;
margin-top: 18px;
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.4;
color: var(--muted, oklch(0.45 0.03 258));
}
.cf-bundle-picker-5 .bp5-total { display: block; font-size: 0.9375rem; font-weight: 700; line-height: 1.4; }
.cf-bundle-picker-5 .bp5-save {
display: block;
margin-top: 8px;
font-size: 0.9375rem;
font-weight: 800;
line-height: 1.4;
color: var(--success, oklch(0.5 0.138 150));
}
.cf-bundle-picker-5 .bp5-crew { flex: 1 1 12rem; min-width: 0; }
.cf-bundle-picker-5 .bp5-crew-title {
margin: 0;
font-family: var(--font-display, sans-serif);
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
font-weight: var(--display-weight, 800);
line-height: 1.15;
letter-spacing: -0.01em;
text-transform: var(--display-case, none);
text-wrap: balance;
}
.cf-bundle-picker-5 .bp5-faces { display: flex; flex-wrap: wrap; margin: 12px 0 0; padding: 0; list-style: none; }
.cf-bundle-picker-5 .bp5-face {
display: grid;
place-items: center;
width: 40px;
height: 40px;
margin-inline-start: -8px;
border: 2px solid var(--band, oklch(0.27 0.067 256));
border-radius: 999px;
background: color-mix(in oklab, var(--band-ink, #fff) 16%, var(--band, oklch(0.27 0.067 256)));
color: var(--band-ink, #fff);
font-size: 0.875rem;
font-weight: 800;
}
.cf-bundle-picker-5 .bp5-face:first-child { margin-inline-start: 0; }
.cf-bundle-picker-5 .bp5-face.is-you {
background: var(--accent-fill, var(--accent, oklch(0.5 0.17 257)));
color: var(--accent-fill-ink, var(--card, #fff));
}
.cf-bundle-picker-5 .bp5-best {
display: flex;
align-items: center;
width: fit-content;
min-height: 28px;
margin: 12px 0 0;
padding: 4px 12px;
border-radius: 999px;
background: var(--accent-fill, var(--accent, oklch(0.5 0.17 257)));
color: var(--accent-fill-ink, var(--card, #fff));
font-size: 0.875rem;
font-weight: 800;
line-height: 1.2;
animation: bp5-pop 0.3s ease both;
}
.cf-bundle-picker-5 .bp5-crew-note {
margin: 12px 0 0;
font-size: 0.9375rem;
font-weight: 500;
line-height: 1.4;
color: var(--bp5-soft);
text-wrap: pretty;
}
/* the two-line button */
.cf-bundle-picker-5 .bp5-cta {
--bp5-bg: var(--button-bg, var(--cta, oklch(0.58 0.21 29)));
--bp5-bg2: var(--button-bg-2, var(--cta-2, oklch(0.51 0.21 29)));
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
width: 100%;
min-height: 72px;
margin-top: 28px;
padding: 12px 28px;
border: 0;
border-radius: var(--button-radius, var(--radius, 12px));
background: linear-gradient(oklch(from var(--bp5-bg) calc(l + 0.04) c h), oklch(from var(--bp5-bg2) calc(l - 0.02) c h));
color: var(--button-ink, var(--cta-ink, #fff));
font-family: var(--button-font, var(--font-display, sans-serif));
text-transform: var(--button-case, none);
text-align: center;
text-shadow: var(--button-text-shadow, none);
cursor: pointer;
box-shadow: var(--button-shadow,
inset 0 1px 0 oklch(from var(--bp5-bg) calc(l + 0.14) c h / 0.7),
inset 0 -3px 0 oklch(from var(--bp5-bg) calc(l - 0.16) c h),
0 1px 2px oklch(from var(--bp5-shadow) l c h / 0.35),
0 8px 16px -6px oklch(from var(--bp5-shadow) l c h / 0.5));
transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.cf-bundle-picker-5 .bp5-cta:not(:disabled):hover,
.cf-bundle-picker-5 .bp5-cta.is-hover:not(:disabled) {
background: linear-gradient(oklch(from var(--bp5-bg) calc(l - 0.01) c h), oklch(from var(--bp5-bg2) calc(l - 0.07) c h));
transform: translateY(-1px);
box-shadow:
inset 0 1px 0 oklch(from var(--bp5-bg) calc(l + 0.12) c h / 0.7),
inset 0 -3px 0 oklch(from var(--bp5-bg) calc(l - 0.18) c h),
0 1px 2px oklch(from var(--bp5-shadow) l c h / 0.4),
0 10px 20px -6px oklch(from var(--bp5-shadow) l c h / 0.6);
}
.cf-bundle-picker-5 .bp5-cta:not(:disabled):active,
.cf-bundle-picker-5 .bp5-cta.is-active:not(:disabled) {
background: linear-gradient(oklch(from var(--bp5-bg) calc(l - 0.04) c h), oklch(from var(--bp5-bg2) calc(l - 0.08) c h));
transform: translateY(1px);
box-shadow:
inset 0 2px 4px oklch(from var(--bp5-bg) calc(l - 0.22) c h / 0.5),
inset 0 -2px 0 oklch(from var(--bp5-bg) calc(l - 0.16) c h),
0 1px 2px oklch(from var(--bp5-shadow) l c h / 0.35);
}
.cf-bundle-picker-5 .bp5-cta:focus-visible { outline: 3px solid var(--band-ink, #fff); outline-offset: 3px; }
.cf-bundle-picker-5 .bp5-cta:disabled {
background: var(--button-2-bg, var(--secondary, oklch(0.93 0.015 263)));
color: var(--button-2-ink, var(--secondary-ink, oklch(0.21 0.034 263)));
box-shadow: var(--button-2-shadow, var(--shadow-sm, 0 1px 1px oklch(0.22 0.03 260 / 0.18), 0 1px 3px oklch(0.22 0.03 260 / 0.14)));
text-shadow: none;
cursor: not-allowed;
transform: none;
}
.cf-bundle-picker-5 .bp5-cta[aria-busy='true'] { cursor: progress; }
.cf-bundle-picker-5 .bp5-cta-main {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
font-size: clamp(1.125rem, 1.55vw, 1.375rem);
font-weight: var(--button-weight, 800);
line-height: 1.15;
text-wrap: balance;
}
.cf-bundle-picker-5 .bp5-cta-sub {
font-family: var(--font-body, sans-serif);
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.3;
text-transform: none;
text-wrap: pretty;
}
.cf-bundle-picker-5 .bp5-spin { animation: bp5-spin 0.8s linear infinite; }
.cf-bundle-picker-5 .bp5-error {
margin: 12px 0 0;
padding: 12px 16px;
border-radius: 10px;
background: var(--danger-soft, oklch(0.93 0.024 27));
color: var(--danger, oklch(0.5 0.17 27));
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.4;
text-wrap: pretty;
}
.cf-bundle-picker-5 .bp5-note {
margin: 12px 0 0;
text-align: center;
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.4;
color: var(--bp5-soft);
text-wrap: pretty;
}
.cf-bundle-picker-5 .bp5-rise { animation: bp5-rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--d, 0s); }
@keyframes bp5-rise { from { opacity: 0.82; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bp5-pop { from { scale: 0.9; } to { scale: 1; } }
@keyframes bp5-spin { to { transform: rotate(360deg); } }
@media (max-width: 960px) {
.cf-bundle-picker-5 .bp5-wrap {
grid-template-columns: minmax(0, 1fr);
grid-template-areas: 'head' 'fan' 'letter' 'close';
grid-template-rows: none;
max-width: 40rem;
}
.cf-bundle-picker-5 .bp5-fan { margin-top: 8px; position: static; }
.cf-bundle-picker-5 .bp5-stage { --spread: 130px; }
}
@media (max-width: 600px) {
.cf-bundle-picker-5 .bp5-stage { --cw: min(78vw, 300px); --spread: 44px; --tilt: 5deg; padding: 36px 0 44px; }
/* side cards peek as photos only, so no half-cut words at the screen edge */
.cf-bundle-picker-5 .bp5-card:not(.is-on) .bp5-body { opacity: 0; }
.cf-bundle-picker-5 .bp5-close { margin-top: 32px; }
.cf-bundle-picker-5 .bp5-tag { flex: 1 1 100%; transform: rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
.cf-bundle-picker-5 .bp5-rise,
.cf-bundle-picker-5 .bp5-swap,
.cf-bundle-picker-5 .bp5-flag,
.cf-bundle-picker-5 .bp5-best,
.cf-bundle-picker-5 .bp5-spin { animation: none; }
.cf-bundle-picker-5 .bp5-card,
.cf-bundle-picker-5 .bp5-body,
.cf-bundle-picker-5 .bp5-cta,
.cf-bundle-picker-5 .bp5-dot { transition: none; }
}
`
pieces/offer/bundle-picker-5/specimen.tsx 64 lines
import __studioImage7c0c8109 from "../assets/44c84a52fd310c27.webp";
import __studioImagecf1aa1d7 from "../assets/db14aa9f79902971.webp";
import __studioImageddf4ca61 from "../assets/dd09cc009ef02d8a.webp";
import * as React from 'react'
import { BundlePicker5, type BundlePicker5State } from '../bundle-picker-5'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function BundlePicker5Specimen({ state }: { state?: BundlePicker5State }) {
return (
<BundlePicker5
state={state}
headline="Bring your crew and everyone pays less"
highlight="everyone pays less"
letter={[
<>
<strong>Two days at the bench, building real projects with your own hands.</strong> That’s Makers Live
Weekend, and it’s better with someone you know beside you.
</>,
'You split the drive, swap tips over lunch and keep each other building long after Sunday.',
'So every pass costs less per person when you come together. Pick who’s coming with you.',
]}
signOff="See you at the bench,"
signatureName="Jo Marsh"
signatureRole="Host, Makers Live Weekend"
defaultSelected={1}
guarantee={defaults.sample.guarantee}
bundles={[
{
name: 'Solo Pass',
people: 1,
price: 297,
image: slot(
'item-1',
__studioImage7c0c8109
),
imageAlt: 'One Makers Live Weekend lanyard pass on a workbench',
},
{
name: '2-Pass',
people: 2,
price: 498,
image: slot(
'item-2',
__studioImagecf1aa1d7
),
imageAlt: 'Two matching Makers Live Weekend passes side by side',
},
{
name: 'Group of 5',
people: 5,
price: 1095,
image: slot(
'item-3',
__studioImageddf4ca61
),
imageAlt: 'Five Makers Live Weekend passes fanned out together',
},
]}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalBundlePicker5 |
string |
|
highlight OptionalBundlePicker5 |
string |
|
salutation OptionalBundlePicker5 |
string |
|
letter OptionalBundlePicker5 |
React.ReactNode[] |
|
signOff OptionalBundlePicker5 |
string |
|
signatureName OptionalBundlePicker5 |
string |
|
signatureRole OptionalBundlePicker5 |
string |
|
bundles OptionalBundlePicker5 |
BundlePicker5Bundle[] |
|
defaultSelected OptionalBundlePicker5 |
number |
|
currency OptionalBundlePicker5 |
string |
|
locale OptionalBundlePicker5 |
string |
|
buttonLabel OptionalBundlePicker5 |
string | ((ctx: BundlePicker5Context) => string) |
|
buttonSub OptionalBundlePicker5 |
string | ((ctx: BundlePicker5Context) => string) |
|
loadingLabel OptionalBundlePicker5 |
string |
|
bestValueLabel OptionalBundlePicker5 |
string |
|
guarantee OptionalBundlePicker5 |
string |
|
backdrop OptionalBundlePicker5 |
string |
|
placeholderArt OptionalBundlePicker5 |
string |
|
errorMessage OptionalBundlePicker5 |
string |
|
state OptionalBundlePicker5 |
BundlePicker5State |
|
onSelect OptionalBundlePicker5 |
(bundle: BundlePicker5Bundle, index: number) => void |
|
onSubmit OptionalBundlePicker5 |
(bundle: BundlePicker5Bundle, index: number) => void | Promise<void> |
|
copy OptionalBundlePicker5 |
Partial<BundlePicker5Copy> |
|
className OptionalBundlePicker5 |
string |
|
style OptionalBundlePicker5 |
React.CSSProperties |
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-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-1- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-2- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-3- One image per offer item (item-1, item-2…), shown in stacks and lists.
-
44c4a68a8f1604d6.webp
image/webp · 18.4 KB
-
44c84a52fd310c27.webp
image/webp · 68.3 KB
-
5602e47ebdb81810.webp
image/webp · 35.6 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
db14aa9f79902971.webp
image/webp · 78.4 KB
-
dd09cc009ef02d8a.webp
image/webp · 64.7 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB