Coupon Wrapper 3
The receipt line: rings up the regular price, the code’s saving and the new total on a quiet till receipt, then hands the buyer the code on a dark stage with a one-tap copy.
Use it in a prompt
Use offer/coupon-wrapper-3 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/coupon-wrapper-3.tsx. - Import it and pass your copy and images (Props tab):
import { CouponWrapper3 } from "@/components/funneldna/offer/coupon-wrapper-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/coupon-wrapper-3/component.tsx 365 lines
// layout: split-contrast
// The receipt line: rings up the regular price, the code’s saving and the new total on a quiet till receipt, then hands the buyer the code on a dark stage with a one-tap copy.
'use client'
import * as React from 'react'
import { Check, Clock, Copy, Tag } from 'lucide-react'
import { Texture, FX_HOST } from '../fx/fx'
import leak from '../fx/textures/leak'
export type CouponWrapper3Props = {
/** The coupon code. Omit it and the copy button is disabled with a hint. */
code?: string
/** Product or plan name above the value reveal. */
title?: React.ReactNode
/** Product image (slot: product), transparent background. */
productImage?: string
productImageAlt?: string
/** The full regular price, shown big first (value reveal). Omit it and the reveal is hidden. */
regularPrice?: string
/** Short line under the big regular price. */
valueLabel?: React.ReactNode
/** The turn between the regular price and the receipt. */
revealLine?: React.ReactNode
/** Receipt, regular line: label, small detail and price (defaults to regularPrice). */
itemLabel?: React.ReactNode
itemDetail?: React.ReactNode
itemPrice?: string
/** Receipt, code line label. {code} is replaced with the code. */
codeLineLabel?: string
/** Code line label used when no code is supplied. */
codeLineFallback?: string
/** The amount the code takes off, shown on the code line. */
saving?: string
/** Small line under the code line label, e.g. the percentage. */
savingNote?: React.ReactNode
/** Receipt, the new total in bold. */
totalLabel?: React.ReactNode
total?: string
/** Reason why: one supplied line under the total. */
reason?: React.ReactNode
/** A real expiry only. Hidden when omitted. */
expiry?: React.ReactNode
/** Letter voice on the dark half; the salutation and sign-off show only with a letter. */
salutation?: React.ReactNode
letter?: React.ReactNode[]
signoff?: React.ReactNode
/** Plain instruction right above the copy button. */
instruction?: React.ReactNode
copyLabel?: string
copiedLabel?: string
/** Shown after a copy. {code} is replaced with the code. */
copiedHint?: string
/** Shown when the clipboard is blocked and the code is selected instead. */
manualHint?: React.ReactNode
/** Shown in the code box when no code is supplied. */
noCodeLabel?: React.ReactNode
noCodeHint?: React.ReactNode
/** Accessible label for the copy button. {code} is replaced with the code. */
copyAriaTemplate?: string
/** Studio preview state. */
state?: 'default' | 'hover' | 'active' | 'disabled' | 'success'
/** Called after the code is copied. */
onAction?: (code: string) => void
className?: string
}
type Status = 'idle' | 'copied' | 'manual'
export function CouponWrapper3({
code,
title,
productImage,
productImageAlt = '',
regularPrice,
valueLabel,
revealLine = 'But you won’t pay that.',
itemLabel,
itemDetail,
itemPrice,
codeLineLabel = 'Code {code}',
codeLineFallback = 'Discount code',
saving,
savingNote,
totalLabel = 'New total',
total,
reason,
expiry,
salutation = 'Dear friend,',
letter,
signoff,
instruction = 'Tap the button below to copy your code, then paste it at checkout.',
copyLabel = 'Copy code',
copiedLabel = 'Copied',
copiedHint = 'Copied. Paste {code} at checkout.',
manualHint = 'Code selected. Press Ctrl+C (⌘C on Mac) to copy it.',
noCodeLabel = 'No code yet',
noCodeHint = 'The code shows here as soon as it’s added to this offer.',
copyAriaTemplate = 'Copy coupon code {code}',
state,
onAction,
className,
}: CouponWrapper3Props) {
const [status, setStatus] = React.useState<Status>('idle')
const codeRef = React.useRef<HTMLSpanElement>(null)
const timer = React.useRef<number | undefined>(undefined)
const alive = React.useRef(true)
const uid = React.useId()
const hintId = `${uid}-hint`
const instrId = `${uid}-instr`
React.useEffect(() => {
alive.current = true
return () => {
alive.current = false
window.clearTimeout(timer.current)
}
}, [])
const cleanCode = (code ?? '').trim()
const hasCode = cleanCode.length > 0
const disabled = !hasCode || state === 'disabled'
const shown: Status = disabled ? 'idle' : state === 'success' ? 'copied' : status
const copied = shown === 'copied'
const linePrice = itemPrice ?? regularPrice
const lineLabel = itemLabel ?? title
const codeLine = hasCode ? fill(codeLineLabel, { code: cleanCode }) : codeLineFallback
const hasReceipt = Boolean(linePrice || saving || total)
const hasLetter = Array.isArray(letter) && letter.length > 0
const selectCode = () => {
const node = codeRef.current
if (!node || typeof window === 'undefined') return
const sel = window.getSelection()
const range = document.createRange()
range.selectNodeContents(node)
sel?.removeAllRanges()
sel?.addRange(range)
}
const handleCopy = async () => {
if (disabled) return
let ok = false
try {
if (navigator.clipboard?.writeText) {
await navigator.clipboard.writeText(cleanCode)
ok = true
}
} catch {
ok = false
}
if (!alive.current) return
window.clearTimeout(timer.current)
if (ok) {
setStatus('copied')
onAction?.(cleanCode)
timer.current = window.setTimeout(() => {
if (alive.current) setStatus('idle')
}, 2600)
} else {
selectCode()
setStatus('manual')
}
}
const hintText = !hasCode
? noCodeHint
: shown === 'copied'
? fill(copiedHint, { code: cleanCode })
: shown === 'manual'
? manualHint
: null
let row = 0
return (
<div
className={['cf-coupon-wrapper-3', className].filter(Boolean).join(' ')}
data-state={state && state !== 'default' ? state : undefined}
>
<style>{CSS}</style>
<div className='cf-cw3-shell'>
<div className='cf-cw3-bill'>
{(title || regularPrice || productImage) && (
<div className='cf-cw3-head'>
<div className='cf-cw3-value'>
{title && <h3 className='cf-cw3-title'>{title}</h3>}
{regularPrice && <p className='cf-cw3-big'>{regularPrice}</p>}
{regularPrice && valueLabel && <p className='cf-cw3-vlabel'>{valueLabel}</p>}
</div>
{productImage && (
<img
className='cf-cw3-img'
src={productImage}
alt={productImageAlt}
width={224}
height={224}
decoding='async'
/>
)}
</div>
)}
{regularPrice && revealLine && <p className='cf-cw3-reveal'>{revealLine}</p>}
{hasReceipt && (
<div className='cf-cw3-receipt'>
<dl className='cf-cw3-lines'>
{linePrice && (
<div className='cf-cw3-row' style={{ '--i': row++ } as React.CSSProperties}>
<dt>
{lineLabel}
{itemDetail && <span className='cf-cw3-sub'>{itemDetail}</span>}
</dt>
<dd>{linePrice}</dd>
</div>
)}
{saving && (
<div className='cf-cw3-row' style={{ '--i': row++ } as React.CSSProperties}>
<dt>
{codeLine}
{savingNote && <span className='cf-cw3-sub'>{savingNote}</span>}
</dt>
<dd className='cf-cw3-save'>{saving}</dd>
</div>
)}
{total && (
<div className='cf-cw3-row cf-cw3-total' style={{ '--i': row++ } as React.CSSProperties}>
<dt>{totalLabel}</dt>
<dd>{total}</dd>
</div>
)}
</dl>
{(reason || expiry) && (
<div className='cf-cw3-notes'>
{reason && (
<p className='cf-cw3-note cf-cw3-reason'>
<Tag size={16} strokeWidth={2.5} aria-hidden />
{reason}
</p>
)}
{expiry && (
<p className='cf-cw3-note'>
<Clock size={16} strokeWidth={2.5} aria-hidden />
{expiry}
</p>
)}
</div>
)}
</div>
)}
</div>
<div className='cf-cw3-hand' style={FX_HOST}>
<Texture src={leak} tone='accent-fill' position='top right' />
{hasLetter && (
<div className='cf-cw3-letter'>
{salutation && <p className='cf-cw3-salute'>{salutation}</p>}
{letter!.map((p, i) => (
<p key={i} className='cf-cw3-para'>
{p}
</p>
))}
{signoff && <p className='cf-cw3-sign'>{signoff}</p>}
</div>
)}
<div className='cf-cw3-take'>
{instruction && (
<p className='cf-cw3-instr' id={instrId}>
{instruction}
</p>
)}
<div className='cf-cw3-codebox' data-empty={hasCode ? undefined : ''}>
{hasCode ? (
<span ref={codeRef} className='cf-cw3-code' onClick={selectCode}>
{cleanCode}
</span>
) : (
<span className='cf-cw3-nocode'>{noCodeLabel}</span>
)}
</div>
<button
type='button'
className='cf-cw3-btn'
onClick={handleCopy}
disabled={disabled}
data-copied={copied ? '' : undefined}
aria-label={hasCode ? fill(copyAriaTemplate, { code: cleanCode }) : undefined}
aria-describedby={[instruction ? instrId : '', hintText ? hintId : ''].filter(Boolean).join(' ') || undefined}
>
<span className='cf-cw3-btn-label' key={copied ? 'copied' : 'copy'}>
{copied ? (
<Check size={20} strokeWidth={3} aria-hidden />
) : (
<Copy size={20} strokeWidth={2.5} aria-hidden />
)}
<span>{copied ? copiedLabel : copyLabel}</span>
</span>
</button>
<p className='cf-cw3-hint' id={hintId} aria-live='polite'>
{hintText}
</p>
</div>
</div>
</div>
</div>
)
}
export default CouponWrapper3
function fill(template: string, values: Record<string, string>) {
return Object.keys(values).reduce((out, key) => out.split('{' + key + '}').join(values[key]), template)
}
const CSS = `
.cf-coupon-wrapper-3{container-type:inline-size;width:100%;max-width:960px;margin-inline:auto;font-family:var(--font-body);color:var(--ink);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5}
.cf-coupon-wrapper-3 *,.cf-coupon-wrapper-3 *::before,.cf-coupon-wrapper-3 *::after{box-sizing:border-box}
.cf-cw3-shell{display:grid;grid-template-columns:minmax(0,1fr);overflow:hidden;background:var(--card);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / .22),0 12px 24px -8px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / .32)))}
@container (min-width:720px){.cf-cw3-shell{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr)}}
.cf-cw3-bill{min-width:0;padding:clamp(20px,4.4cqi,40px);background:var(--card);color:var(--ink)}
.cf-cw3-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.cf-cw3-value{min-width:0}
.cf-cw3-title{margin:0 0 12px;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,3cqi,1.625rem);line-height:1.15;letter-spacing:-.01em;color:var(--ink);text-wrap:balance}
.cf-cw3-big{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2.25rem,6.2cqi,3rem);line-height:1;letter-spacing:-.03em;font-variant-numeric:lining-nums tabular-nums;color:var(--ink)}
.cf-cw3-vlabel{margin:12px 0 0;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-cw3-img{flex:none;width:clamp(84px,16cqi,132px);height:auto;aspect-ratio:1;object-fit:contain;border-radius:0;filter:drop-shadow(0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / .3)) drop-shadow(0 12px 14px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / .2))}
.cf-cw3-reveal{margin:24px 0 0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,3cqi,1.625rem);line-height:1.15;letter-spacing:-.01em;color:var(--ink);text-wrap:balance}
.cf-cw3-receipt{margin-top:16px;padding:8px clamp(16px,3cqi,24px) 20px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card))}
.cf-cw3-lines{margin:0}
.cf-cw3-row{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:12px 0;animation:cf-cw3-in .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:min(calc(var(--i,0) * .07s),.28s)}
.cf-cw3-row + .cf-cw3-row{border-top:1px solid oklch(from var(--ink) l c h / .12)}
.cf-cw3-row.cf-cw3-total{border-top:0;align-items:flex-end;padding-top:20px;padding-bottom:8px}
.cf-cw3-row dt{min-width:0;font-weight:700;color:var(--ink);text-wrap:pretty}
.cf-cw3-sub{display:block;margin-top:2px;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted)}
.cf-cw3-row dd{flex:none;margin:0;white-space:nowrap;font-weight:700;font-variant-numeric:lining-nums tabular-nums;text-align:right;color:var(--ink)}
.cf-cw3-row dd.cf-cw3-save{color:var(--success)}
.cf-cw3-total dt{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,3cqi,1.625rem);line-height:1.15;letter-spacing:-.01em}
.cf-cw3-total dd{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2.25rem,7cqi,3.5rem);line-height:1;letter-spacing:-.03em}
.cf-cw3-notes{display:grid;gap:4px;margin-top:8px}
.cf-cw3-note{margin:0;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-cw3-note.cf-cw3-reason{font-weight:700;color:var(--ink)}
.cf-cw3-note svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
.cf-cw3-hand{position:relative;isolation:isolate;display:flex;flex-direction:column;gap:32px;min-width:0;padding:clamp(20px,4.4cqi,40px);background:var(--band);color:var(--band-ink)}
.cf-cw3-letter,.cf-cw3-take{position:relative;z-index:1}
.cf-cw3-salute{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,3cqi,1.625rem);line-height:1.15;letter-spacing:-.01em;color:var(--band-ink)}
.cf-cw3-para{margin:12px 0 0;max-width:64ch;line-height:1.5;color:var(--band-ink);text-wrap:pretty}
.cf-cw3-sign{margin:16px 0 0;font-size:.9375rem;font-weight:700;line-height:1.4;color:var(--band-ink)}
.cf-cw3-take{margin-top:auto}
.cf-cw3-instr{margin:0;font-weight:700;line-height:1.4;color:var(--band-ink);text-wrap:pretty}
.cf-cw3-codebox{margin:16px 0;padding:18px 20px;border-radius:10px;text-align:center;background:oklch(from var(--band-ink) l c h / .1);box-shadow:inset 0 0 0 1px oklch(from var(--band-ink) l c h / .2),inset 0 1px 0 oklch(from var(--band-ink) l c h / .08)}
.cf-cw3-code{display:block;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.875rem,7cqi,2.75rem);line-height:1.1;letter-spacing:.08em;font-variant-numeric:lining-nums tabular-nums;color:var(--band-ink);overflow-wrap:anywhere;cursor:text;-webkit-user-select:all;user-select:all}
.cf-cw3-code::selection{background:oklch(from var(--band-ink) l c h / .32);color:var(--band-ink)}
.cf-cw3-nocode{display:block;font-size:1.0625rem;font-weight:700;line-height:1.4;color:var(--band-ink)}
.cf-cw3-btn{display:flex;width:100%;min-height:64px;align-items:center;justify-content:center;margin:0;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);cursor:pointer;background:linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l + .04) c h),oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / .35),0 8px 16px -6px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / .45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-cw3-btn:not(:disabled):hover,.cf-coupon-wrapper-3[data-state='hover'] .cf-cw3-btn:not(:disabled){background:linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - .01) c h),oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .07) c h));box-shadow:inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + .1) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - .2) c h),0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / .4),0 10px 18px -6px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / .55)}
.cf-cw3-btn:not(:disabled):active,.cf-coupon-wrapper-3[data-state='active'] .cf-cw3-btn:not(:disabled){transform:translateY(1px);background:linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - .05) c h),oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .09) c h));box-shadow:inset 0 2px 4px oklch(from var(--button-bg, var(--cta)) calc(l - .24) c h / .55),inset 0 -2px 0 oklch(from var(--button-bg, var(--cta)) calc(l - .18) c h),0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / .35)}
.cf-cw3-btn:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
.cf-cw3-btn:disabled{cursor:not-allowed;color:var(--band-ink);text-shadow:none;background:oklch(from var(--band-ink) l c h / .14);box-shadow:inset 0 0 0 1px oklch(from var(--band-ink) l c h / .16)}
.cf-cw3-btn-label{display:inline-flex;align-items:center;justify-content:center;gap:10px}
.cf-cw3-btn-label svg{flex:none}
.cf-cw3-btn[data-copied] .cf-cw3-btn-label{animation:cf-cw3-pop .3s cubic-bezier(.2,.7,.2,1) both}
.cf-cw3-hint{min-height:1.4em;margin:12px 0 0;font-size:.9375rem;font-weight:600;line-height:1.4;text-align:center;color:var(--band-ink);text-wrap:pretty}
@keyframes cf-cw3-in{from{opacity:.82;transform:translateY(8px)}}
@keyframes cf-cw3-pop{from{transform:scale(.9)}}
@media (prefers-reduced-motion:reduce){.cf-coupon-wrapper-3 .cf-cw3-row,.cf-coupon-wrapper-3 .cf-cw3-btn[data-copied] .cf-cw3-btn-label{animation:none}.cf-coupon-wrapper-3 .cf-cw3-btn{transition:none}.cf-coupon-wrapper-3 .cf-cw3-btn:not(:disabled):active{transform:none}}
`
pieces/offer/coupon-wrapper-3/specimen.tsx 35 lines
import __studioImageb96d32cb from "../assets/288629765881ae59.webp";
import { CouponWrapper3 } from '../coupon-wrapper-3'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled', 'success']
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled' | 'success'
export default function CouponWrapper3Specimen({ state = 'default' }: { state?: SpecimenState }) {
const noCode = state === 'disabled'
return (
<CouponWrapper3
state={state}
code={noCode ? undefined : 'LAUNCH40'}
title='Slotwell Annual'
productImage={slot('product', __studioImageb96d32cb)}
productImageAlt='Slotwell scheduling app open on a phone'
regularPrice='$180'
valueLabel='Regular price for a full year of Slotwell'
itemLabel='Slotwell Annual plan'
itemDetail='12 months, billed once'
itemPrice='$180.00'
saving='−$72.00'
savingNote='40% off your first year'
total='$108.00'
reason='Launch week pricing'
letter={[
'I set this code aside for our launch week.',
'It takes 40% off your first year, so your booking links, reminders and calendar sync cost $108 for the whole year.',
]}
signoff='Priya Raman, founder of Slotwell'
onAction={() => {}}
/>
)
}
| Name | Type | Details |
|---|---|---|
code OptionalCouponWrapper3 |
string |
|
title OptionalCouponWrapper3 |
React.ReactNode |
|
productImage OptionalCouponWrapper3 |
string |
|
productImageAlt OptionalCouponWrapper3 |
string |
Default ''
|
regularPrice OptionalCouponWrapper3 |
string |
|
valueLabel OptionalCouponWrapper3 |
React.ReactNode |
|
revealLine OptionalCouponWrapper3 |
React.ReactNode |
Default 'But you won’t pay that.'
|
itemLabel OptionalCouponWrapper3 |
React.ReactNode |
|
itemDetail OptionalCouponWrapper3 |
React.ReactNode |
|
itemPrice OptionalCouponWrapper3 |
string |
|
codeLineLabel OptionalCouponWrapper3 |
string |
Default 'Code {code}'
|
codeLineFallback OptionalCouponWrapper3 |
string |
Default 'Discount code'
|
saving OptionalCouponWrapper3 |
string |
|
savingNote OptionalCouponWrapper3 |
React.ReactNode |
|
totalLabel OptionalCouponWrapper3 |
React.ReactNode |
Default 'New total'
|
total OptionalCouponWrapper3 |
string |
|
reason OptionalCouponWrapper3 |
React.ReactNode |
|
expiry OptionalCouponWrapper3 |
React.ReactNode |
|
salutation OptionalCouponWrapper3 |
React.ReactNode |
Default 'Dear friend,'
|
letter OptionalCouponWrapper3 |
React.ReactNode[] |
|
signoff OptionalCouponWrapper3 |
React.ReactNode |
|
instruction OptionalCouponWrapper3 |
React.ReactNode |
Default 'Tap the button below to copy your code, then paste it at checkout.'
|
copyLabel OptionalCouponWrapper3 |
string |
Default 'Copy code'
|
copiedLabel OptionalCouponWrapper3 |
string |
Default 'Copied'
|
copiedHint OptionalCouponWrapper3 |
string |
Default 'Copied. Paste {code} at checkout.'
|
manualHint OptionalCouponWrapper3 |
React.ReactNode |
Default 'Code selected. Press Ctrl+C (⌘C on Mac) to copy it.'
|
noCodeLabel OptionalCouponWrapper3 |
React.ReactNode |
Default 'No code yet'
|
noCodeHint OptionalCouponWrapper3 |
React.ReactNode |
Default 'The code shows here as soon as it’s added to this offer.'
|
copyAriaTemplate OptionalCouponWrapper3 |
string |
Default 'Copy coupon code {code}'
|
state OptionalCouponWrapper3 |
'default' | 'hover' | 'active' | 'disabled' | 'success' |
|
onAction OptionalCouponWrapper3 |
(code: string) => void |
|
className OptionalCouponWrapper3 |
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.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-weight- Headlines: weight, letter case and tracking.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
product- The main product shot or cover (ebook, kit, bottle).
-
288629765881ae59.webp
image/webp · 62.1 KB
-
986367d82c360c9a.webp
image/webp · 102 KB