Belcher Button 2
Connects a short personal invitation to the order button with a hand-drawn arrow pointing at it.
Use it in a prompt
Use offer/belcher-button-2 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/belcher-button-2.tsx. - Import it and pass your copy and images (Props tab):
import { BelcherButton2 } from "@/components/funneldna/offer/belcher-button-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/belcher-button-2/component.tsx 244 lines
// Closes the sale with a coupon-style price card and one checkout button.
'use client'
import * as React from 'react'
import { Loader2 } from 'lucide-react'
import { AmericanExpress, Discover, Mastercard, PayPal, Visa } from 'react-svg-credit-card-payment-icons/icons/logo-border'
export type BelcherButton2Props = {
/** Product name, quoted in the headline: ‘Name’ For Just $47! */
name?: string
/** Today’s price. */
price?: string
/** Optional regular price, shown struck through above the headline. */
regularPrice?: string
regularPriceLabel?: string
/** Replaces the generated headline. */
headline?: React.ReactNode
/** Button line 1: the action. */
label?: string
/** Button line 2: the reassurance. */
sublabel?: string
/** Underlined text link under the button. It triggers the same action. */
linkLabel?: string
/** Handwritten reassurance line in the bottom strip. */
finePrint?: string
/** Show the accepted-card row. Use it for a real checkout only. */
payments?: boolean
href?: string
type?: 'button' | 'submit'
onAction?: (event: React.MouseEvent<HTMLElement>) => void
/** Legacy alias for onAction. */
onClick?: (event: React.MouseEvent<HTMLElement>) => void
disabled?: boolean
/** 'success' is deprecated and renders as idle. */
status?: 'idle' | 'loading' | 'success'
loadingLabel?: string
/** Deprecated: ignored. The builder wires what happens after the action. */
successLabel?: string
/** Pins a visual state for previews. */
forceState?: 'hover' | 'active'
state?: 'default' | 'hover' | 'active' | 'disabled' | 'success'
/** Named headline uses {name}; price line uses {price}. Whitespace is part of the template. */
copy?: Partial<{ namedHeadline: string; unnamedHeadline: string; price: string; payments: string }>
paymentLabels?: Partial<Record<'visa' | 'mastercard' | 'amex' | 'discover' | 'paypal', string>>
className?: string
}
export function BelcherButton2({
name,
price = '$47',
regularPrice,
regularPriceLabel = 'Regular price',
headline,
label = 'Yes! Give Me Access',
sublabel,
linkLabel = 'Click here to get access',
finePrint,
payments = true,
href,
type = 'button',
onClick,
onAction = onClick,
disabled = false,
status = 'idle',
loadingLabel = 'Securing your order…',
forceState,
state,
copy,
paymentLabels,
className,
}: BelcherButton2Props) {
disabled = state === 'disabled' || disabled
forceState = state === 'hover' || state === 'active' ? state : forceState
const text = { namedHeadline: '‘{name}’ For ', unnamedHeadline: 'Get Access For ', price: 'Just {price}!', payments: 'Accepted payment methods', ...copy }
const busy = status === 'loading'
const off = disabled || busy
const heading = headline ?? (name ? (
<>{text.namedHeadline.replaceAll('{name}', () => name)}<span className='bb2-nw'>{text.price.replaceAll('{price}', () => price)}</span></>
) : (
<>{text.unnamedHeadline}<span className='bb2-nw'>{text.price.replaceAll('{price}', () => price)}</span></>
))
const handle = (event: React.MouseEvent<HTMLElement>) => {
if (off) {
event.preventDefault()
return
}
onAction?.(event)
}
const inner = (
<>
<span className='bb2-l1'>{busy ? loadingLabel : label}</span>
{sublabel ? <span className='bb2-l2'>{sublabel}</span> : null}
{busy ? (
<span className='bb2-ico' aria-hidden='true'>
<Loader2 className='bb2-spin' />
</span>
) : null}
</>
)
return (
<div className={['bb2 cf-belcher-button-2', className].filter(Boolean).join(' ')}>
<style>{CSS}</style>
<div className='bb2-card'>
<div className='bb2-body'>
{regularPrice ? (
<p className='bb2-was'>
{regularPriceLabel} <s>{regularPrice}</s>
</p>
) : null}
<p className='bb2-head'>{heading}</p>
{href ? (
<a
className='bb2-btn'
href={off ? undefined : href}
aria-disabled={off || undefined}
aria-busy={busy || undefined}
data-force={forceState}
onClick={handle}
>
{inner}
</a>
) : (
<button
className='bb2-btn'
type={type}
disabled={disabled}
aria-disabled={busy || undefined}
aria-busy={busy || undefined}
data-force={forceState}
onClick={handle}
>
{inner}
</button>
)}
{linkLabel ? (
href ? (
<a className='bb2-link' href={off ? undefined : href} aria-disabled={off || undefined} onClick={handle}>
{linkLabel}
</a>
) : (
<button className='bb2-link' type={type} disabled={off} onClick={handle}>
{linkLabel}
</button>
)
) : null}
{payments ? (
<ul className='bb2-cards' aria-label={text.payments}>
{CARDS.map(({ id, label: cardLabel, Icon }) => (
<li key={cardLabel} title={paymentLabels?.[id] ?? cardLabel}>
<span role='img' aria-label={paymentLabels?.[id] ?? cardLabel}>
<Icon aria-hidden='true' />
</span>
</li>
))}
</ul>
) : null}
</div>
{finePrint ? (
<p className='bb2-strip'>
<span aria-hidden='true'>*</span>
{finePrint}
</p>
) : null}
</div>
<span className='bb2-fold' aria-hidden='true' />
</div>
)
}
export default BelcherButton2
// Reduced-motion overrides retain !important to preserve hover/active precedence.
const CARDS = [
{ id: 'visa', label: 'Visa', Icon: Visa },
{ id: 'mastercard', label: 'Mastercard', Icon: Mastercard },
{ id: 'amex', label: 'American Express', Icon: AmericanExpress },
{ id: 'discover', label: 'Discover', Icon: Discover },
{ id: 'paypal', label: 'PayPal', Icon: PayPal },
] as const
const CSS = `
.cf-belcher-button-2{--bb2-ink:var(--ink);--bb2-muted:var(--muted);--bb2-red:var(--cta);--bb2-red-deep:var(--cta-2);--bb2-blue:var(--accent);--bb2-green:var(--success);--bb2-paper:color-mix(in oklch,var(--accent) 4%,var(--card));--bb2-fold:40px;position:relative;width:100%;max-width:36rem;margin-inline:auto;color:var(--bb2-ink);font-family:var(--font-body,Arial,sans-serif);overflow-wrap:break-word;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)))}
.cf-belcher-button-2 *,.cf-belcher-button-2 *::before,.cf-belcher-button-2 *::after{box-sizing:border-box}
.cf-belcher-button-2 :where(p,ul){margin:0;padding:0}
:where(.cf-belcher-button-2) .bb2-card{position:relative;overflow:hidden;border:6px dashed var(--card-border,var(--accent-fill,var(--accent)));border-radius:var(--card-radius, var(--radius,6px));background-color:var(--card);background-image:none;clip-path:polygon(0 0,calc(100% - var(--bb2-fold)) 0,100% var(--bb2-fold),100% 100%,0 100%);text-align:center}
:where(.cf-belcher-button-2) .bb2-fold{position:absolute;top:0;right:0;width:var(--bb2-fold);height:var(--bb2-fold);clip-path:polygon(0 0,0 100%,100% 100%);background:linear-gradient(225deg,transparent 50%,var(--card) 50%,var(--card) 70%,var(--card) 100%);pointer-events:none}
:where(.cf-belcher-button-2) .bb2-body{padding:clamp(1.25rem,.8rem + 2vw,2rem) clamp(1rem,.4rem + 3vw,2.25rem) clamp(1.1rem,.8rem + 1.4vw,1.6rem)}
:where(.cf-belcher-button-2) .bb2-was{margin:0 0 .75rem;color:var(--bb2-muted);font-size:1rem;font-weight:700}
:where(.cf-belcher-button-2) .bb2-was s{text-decoration-color:var(--danger);text-decoration-thickness:2px;color:var(--danger)}
:where(.cf-belcher-button-2) .bb2-head{margin:0 auto;color:var(--ink);font-family:var(--font-display,Arial,sans-serif);font-size:clamp(1.65rem,1.05rem + 2.6vw,2.6rem);font-weight:var(--display-weight, 800);line-height:1.08;letter-spacing:var(--display-tracking, -.025em);text-wrap:balance;text-shadow:var(--button-text-shadow, 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h / 0.75));text-transform:var(--display-case,none)}
:where(.cf-belcher-button-2) .bb2-nw{white-space:nowrap}
:where(.cf-belcher-button-2) .bb2-btn{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;width:100%;min-height:76px;margin:clamp(1rem,.7rem + 1.2vw,1.4rem) 0 0;padding:.75rem 3rem;border:5px solid var(--bb2-red-deep);border-radius:var(--button-radius,var(--radius,6px));background:linear-gradient(180deg,var(--button-bg,var(--cta)),var(--button-bg-2,oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h)));box-shadow:var(--button-shadow, inset 0 0 0 2px oklch(from var(--card) calc(l + 0.04) c h / .95), 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)), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h));color:var(--button-ink,var(--cta-ink));font:inherit;text-align:center;text-decoration:none;cursor:pointer;overflow:hidden;transition:transform .16s ease,box-shadow .16s ease,filter .2s ease;-webkit-tap-highlight-color:transparent}
:where(.cf-belcher-button-2) .bb2-btn::after{content:'';position:absolute;top:-40%;bottom:-40%;left:-45%;width:30%;background:linear-gradient(180deg,var(--button-bg,var(--cta)),var(--button-bg-2,oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h)));transform:skewX(-18deg);transition:left .6s ease;pointer-events:none}
:where(.cf-belcher-button-2) .bb2-l1{display:block;max-width:100%;font-family:var(--button-font, var(--font-display,Arial,sans-serif));font-size:clamp(1.15rem,.75rem + 1.7vw,1.7rem);font-weight:var(--button-weight, 800);line-height:1.12;letter-spacing:-.015em;text-wrap:balance;text-shadow:var(--button-text-shadow, 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h / 0.75));text-transform:var(--button-case,none)}
:where(.cf-belcher-button-2) .bb2-l2{display:block;color:var(--button-ink,var(--cta-ink));font-size:.9rem;font-weight:700;line-height:1.3}
:where(.cf-belcher-button-2) .bb2-ico{position:absolute;top:50%;right:.9rem;display:grid;place-items:center;width:1.9rem;height:1.9rem;margin-top:-.95rem;border-radius:50%;background:var(--button-bg-2,var(--cta-2));color:var(--button-ink,var(--cta-ink));box-shadow:inset 0 1px 0 oklch(from var(--card) calc(l + 0.04) c h / .25), 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));transition:transform .2s ease}
:where(.cf-belcher-button-2) .bb2-ico svg{width:1.1rem;height:1.1rem;stroke-width:2.6}
:where(.cf-belcher-button-2) .bb2-btn[data-force=hover]{transform:translateY(-1px);filter:none;box-shadow:var(--button-shadow, inset 0 0 0 2px oklch(from var(--card) calc(l + 0.04) c h / .95), 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)), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h));background:oklch(from var(--button-bg,var(--cta)) calc(l - 0.06) c h)}
:where(.cf-belcher-button-2) .bb2-btn[data-force=hover]::after{left:115%}
:where(.cf-belcher-button-2) .bb2-btn:active:not(:disabled),:where(.cf-belcher-button-2) .bb2-btn[data-force=active]{transform:translateY(2px);background:linear-gradient(180deg,var(--button-bg,var(--cta)),var(--button-bg-2,oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h)));box-shadow:var(--button-shadow, inset 0 0 0 2px oklch(from var(--card) calc(l + 0.04) c h / .9), inset 0 3px 6px oklch(from var(--ink) l c h / 0.18), 0 1px 1px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.2), inset 0 -1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h))}
:where(.cf-belcher-button-2) .bb2-btn:focus-visible,:where(.cf-belcher-button-2) .bb2-link:focus-visible{outline:3px solid var(--bb2-blue);outline-offset:4px}
:where(.cf-belcher-button-2) .bb2-btn[aria-busy=true]{cursor:progress}
:where(.cf-belcher-button-2) .bb2-btn:disabled,:where(.cf-belcher-button-2) .bb2-btn[aria-disabled=true]:not([aria-busy=true]){cursor:not-allowed;transform:none;filter:none;border-color:var(--ink);background:linear-gradient(180deg,var(--button-bg,var(--cta)),var(--button-bg-2,oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h)));color:var(--button-ink,var(--cta-ink));box-shadow:var(--button-shadow, inset 0 0 0 2px oklch(from var(--card) calc(l + 0.04) c h / .9), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h))}
:where(.cf-belcher-button-2) .bb2-btn:disabled .bb2-l2{color:var(--button-ink,var(--cta-ink))}
:where(.cf-belcher-button-2) .bb2-btn:disabled .bb2-ico{background:var(--ink)}
:where(.cf-belcher-button-2) .bb2-btn:disabled::after{display:none}
:where(.cf-belcher-button-2) .bb2-spin{animation:bb2-spin .9s linear infinite}
@keyframes bb2-spin{to{transform:rotate(360deg)}}
:where(.cf-belcher-button-2) .bb2-link{display:inline-block;margin-top:1.1rem;padding:.35rem .5rem;border:0;background:transparent;color:var(--link,var(--accent));font:inherit;font-size:1.05rem;font-weight:var(--button-weight, 700);line-height:1.35;text-decoration:underline;text-decoration-color:oklch(from var(--link,var(--accent)) l c h / 0.45);text-decoration-thickness:2px;text-underline-offset:.18em;cursor:pointer;transition:color .2s ease,text-underline-offset .2s ease;text-transform:var(--button-case,none);border-color:var(--button-2-border,oklch(from var(--ink) l c h / 0.22))}
:where(.cf-belcher-button-2) .bb2-link:focus-visible{color:oklch(from var(--link,var(--accent)) calc(l - 0.08) c h);text-decoration-color:currentColor}
:where(.cf-belcher-button-2) .bb2-link:disabled{color:var(--ink);cursor:not-allowed;text-decoration-style:dotted}
:where(.cf-belcher-button-2) .bb2-cards{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1rem;list-style:none}
:where(.cf-belcher-button-2) .bb2-cards li{display:grid;place-items:center;border-radius:5px;background:var(--card);line-height:0;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))}
:where(.cf-belcher-button-2) .bb2-cards span{display:block;line-height:0}
:where(.cf-belcher-button-2) .bb2-cards svg{display:block;width:46px;height:30px}
:where(.cf-belcher-button-2) .bb2-strip{display:flex;align-items:baseline;justify-content:center;gap:.45rem;padding:.85rem clamp(1rem,.4rem + 3vw,2.25rem) .95rem;border-top:1px solid oklch(from var(--ink) l c h / 0.08);background:var(--card);color:var(--bb2-green);font:700 1.08rem/1.35 var(--belcher-note-face,var(--font-body));text-wrap:balance}
:where(.cf-belcher-button-2) .bb2-strip span{font-size:1.25em;line-height:1}
@media (hover:hover){
:where(.cf-belcher-button-2) .bb2-btn:hover:not(:disabled):not([aria-disabled=true]){transform:translateY(-1px);filter:none;box-shadow:var(--button-shadow, inset 0 0 0 2px oklch(from var(--card) calc(l + 0.04) c h / .95), 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)), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h));background:oklch(from var(--button-bg,var(--cta)) calc(l - 0.06) c h)}
:where(.cf-belcher-button-2) .bb2-btn:hover:not(:disabled)::after{left:115%}
:where(.cf-belcher-button-2) .bb2-btn:active:not(:disabled){transform:translateY(2px)}
:where(.cf-belcher-button-2) .bb2-link:hover:not(:disabled){color:oklch(from var(--link,var(--accent)) calc(l - 0.08) c h);text-decoration-color:currentColor}
}
@media (max-width:420px){
.cf-belcher-button-2{--bb2-fold:30px}
:where(.cf-belcher-button-2) .bb2-btn{padding-inline:2.4rem}
:where(.cf-belcher-button-2) .bb2-ico{right:.55rem;width:1.6rem;height:1.6rem;margin-top:-.8rem}
:where(.cf-belcher-button-2) .bb2-ico svg{width:.95rem;height:.95rem}
:where(.cf-belcher-button-2) .bb2-strip{font-size:1rem}
}
@media (prefers-reduced-motion:reduce){
.cf-belcher-button-2 *,.cf-belcher-button-2 *::before,.cf-belcher-button-2 *::after{transition:none!important;animation:none!important}
:where(.cf-belcher-button-2) .bb2-btn::after{display:none}
:where(.cf-belcher-button-2) .bb2-btn[data-force=hover],:where(.cf-belcher-button-2) .bb2-btn:hover{transform:none!important}
}
`
pieces/offer/belcher-button-2/specimen.tsx 25 lines
// One neutral, local-only example. Nothing is sent and nothing is charged.
import { BelcherButton2 } from '../belcher-button-2'
import defaults from '../../studio-defaults.json'
export const states = ['default', 'hover', 'active', 'disabled']
export default function Specimen({ state = 'default' }: { state?: string }) {
const b = defaults.sample
const forced = state === 'hover' || state === 'active' ? state : undefined
return (
<BelcherButton2
name={b.name}
price={b.price}
regularPrice={b.regularPrice}
label={b.label}
sublabel={b.sublabel}
linkLabel='Click here to get the complete kit now'
finePrint={b.reassurance.join(' · ')}
payments
disabled={state === 'disabled'}
forceState={forced}
/>
)
}
| Name | Type | Details |
|---|---|---|
name OptionalBelcherButton2 |
string |
|
price OptionalBelcherButton2 |
string |
Default '$47'
|
regularPrice OptionalBelcherButton2 |
string |
|
regularPriceLabel OptionalBelcherButton2 |
string |
Default 'Regular price'
|
headline OptionalBelcherButton2 |
React.ReactNode |
|
label OptionalBelcherButton2 |
string |
Default 'Yes! Give Me Access'
|
sublabel OptionalBelcherButton2 |
string |
|
linkLabel OptionalBelcherButton2 |
string |
Default 'Click here to get access'
|
finePrint OptionalBelcherButton2 |
string |
|
payments OptionalBelcherButton2 |
boolean |
Default true
|
href OptionalBelcherButton2 |
string |
|
type OptionalBelcherButton2 |
'button' | 'submit' |
Default 'button'
|
onAction OptionalBelcherButton2 |
(event: React.MouseEvent<HTMLElement>) => void |
Default onClick
|
onClick OptionalBelcherButton2 |
(event: React.MouseEvent<HTMLElement>) => void |
|
disabled OptionalBelcherButton2 |
boolean |
Default false
|
status OptionalBelcherButton2 |
'idle' | 'loading' | 'success' |
Default 'idle'
|
loadingLabel OptionalBelcherButton2 |
string |
Default 'Securing your order…'
|
successLabel OptionalBelcherButton2 |
string |
|
forceState OptionalBelcherButton2 |
'hover' | 'active' |
|
state OptionalBelcherButton2 |
'default' | 'hover' | 'active' | 'disabled' | 'success' |
|
copy OptionalBelcherButton2 |
Partial<{ namedHeadline: string; unnamedHeadline: string; price: string; payments: string }> |
|
paymentLabels OptionalBelcherButton2 |
Partial<Record<'visa' | 'mastercard' | 'amex' | 'discover' | 'paypal', string>> |
|
className OptionalBelcherButton2 |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-border- 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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
This piece reads no image slots.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB