Belcher Button 3
Groups the offer, the order button and the supplied reassurance into one substantial response card.
Use it in a prompt
Use offer/belcher-button-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/belcher-button-3.tsx. - Import it and pass your copy and images (Props tab):
import { BelcherButton3 } from "@/components/funneldna/offer/belcher-button-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/belcher-button-3/component.tsx 190 lines
// Frames the price and a big buy button with payment marks and an optional guarantee line.
"use client"
import * as React from "react"
import { Check, Lock, ShieldCheck, ShoppingCart } from "lucide-react"
import { Visa, Mastercard, AmericanExpress, Discover, PayPal } from "react-svg-credit-card-payment-icons/icons/flat-rounded"
type PaymentKey = "visa" | "mastercard" | "amex" | "discover" | "paypal"
type SvgMark = React.ComponentType<React.SVGProps<SVGSVGElement>>
export type BelcherButton3Props = {
label?: string
sublabel?: string
heading?: string
regularLabel?: string
regularPrice?: string
todayLabel?: string
price?: string
href?: string
onAction?: (event: React.MouseEvent<HTMLElement>) => void
/** Legacy alias for onAction. */
onClick?: (event: React.MouseEvent<HTMLElement>) => void
disabled?: boolean
linkLabel?: string
secureNote?: string
payments?: PaymentKey[]
finePrint?: string
reassurance?: (string | { text: React.ReactNode })[]
/** Deprecated: ignored. The builder wires what happens after the action. */
status?: "idle" | "success"
/** Deprecated: ignored. The builder wires what happens after the action. */
statusMessage?: string
previewState?: "hover" | "active"
state?: "default" | "hover" | "active" | "disabled" | "success"
/** The regularPrice template accepts {price}. */
copy?: Partial<{ regularPrice: string; payments: string }>
paymentLabels?: Partial<Record<PaymentKey, string>>
className?: string
}
export function BelcherButton3({
label = "Buy Now",
sublabel,
heading,
regularLabel = "Regular Price:",
regularPrice,
todayLabel = "Today:",
price,
href,
onClick,
onAction = onClick,
disabled = false,
linkLabel,
secureNote = "",
payments = ["visa", "mastercard", "amex", "discover", "paypal"],
finePrint,
reassurance = [],
previewState,
state,
copy,
paymentLabels,
className,
}: BelcherButton3Props) {
disabled = state === "disabled" || disabled
previewState = state === "hover" || state === "active" ? state : previewState
const text = { regularPrice: "Regular price was {price}.", payments: "Accepted payment methods", ...copy }
const priceId = React.useId()
const hasPrice = Boolean(price || regularPrice)
const btnClass = ["cfb3-btn", previewState === "hover" && "is-hover", previewState === "active" && "is-active"].filter(Boolean).join(" ")
const inner = (
<>
<span className="cfb3-badge" aria-hidden><ShoppingCart /></span>
<span className="cfb3-text">
<span className="cfb3-label">{label}</span>
{sublabel && <span className="cfb3-sub">{sublabel}</span>}
</span>
</>
)
const handle = (event: React.MouseEvent<HTMLElement>) => {
if (disabled) { event.preventDefault(); return }
onAction?.(event)
}
return (
<div className={["cfb3 cf-belcher-button-3", className].filter(Boolean).join(" ")}>
<style>{CSS}</style>
{heading && <h2 className="cfb3-heading">{heading}</h2>}
{hasPrice && (
<p id={priceId} className={`cfb3-price${regularPrice && price ? "" : " is-solo"}`}>
{regularPrice && (
<span>
<span className="cfb3-sr">{text.regularPrice.replaceAll("{price}", () => regularPrice)}</span>
<span className="cfb3-was" aria-hidden>{`${regularLabel} ${regularPrice}`}</span>
</span>
)}
{price && <strong className="cfb3-now">{`${todayLabel} ${price}`}</strong>}
</p>
)}
{href && !disabled ? (
<a className={btnClass} href={href} onClick={handle} aria-describedby={hasPrice ? priceId : undefined}>{inner}</a>
) : (
<button type="button" className={btnClass} onClick={handle} aria-disabled={disabled || undefined} disabled={disabled} aria-describedby={hasPrice ? priceId : undefined}>{inner}</button>
)}
{linkLabel && !disabled && (href
? <a className="cfb3-link" href={href} onClick={handle}>{linkLabel}</a>
: <button type="button" className="cfb3-link" onClick={handle}>{linkLabel}</button>)}
{secureNote && <p className="cfb3-secure"><Lock aria-hidden />{secureNote}</p>}
{payments.length > 0 && (
<ul className="cfb3-pay" aria-label={text.payments}>
{payments.map((key) => {
const { label: name, Mark } = PAYMENT_MARKS[key]
return <li key={key}><Mark aria-hidden focusable="false" /><span className="cfb3-sr">{paymentLabels?.[key] ?? name}</span></li>
})}
</ul>
)}
{finePrint && <p className="cfb3-fine"><ShieldCheck aria-hidden />{finePrint}</p>}
{reassurance.length > 0 && (
<ul className="cfb3-reassure">
{reassurance.map((line, index) => <li key={typeof line === "string" ? line : index}><Check aria-hidden />{typeof line === "string" ? line : line.text}</li>)}
</ul>
)}
</div>
)
}
export default BelcherButton3
const PAYMENT_MARKS: Record<PaymentKey, { label: string; Mark: SvgMark }> = {
visa: { label: "Visa", Mark: Visa },
mastercard: { label: "Mastercard", Mark: Mastercard },
amex: { label: "American Express", Mark: AmericanExpress },
discover: { label: "Discover", Mark: Discover },
paypal: { label: "PayPal", Mark: PayPal },
}
// Reduced-motion !important preserves the existing hover/active cascade.
const CSS = `
.cf-belcher-button-3{container-type:inline-size;box-sizing:border-box;width:100%;max-width:34rem;margin-inline:auto;padding:1.5rem 1.75rem 1.375rem;border:1px solid var(--card-border,oklch(from var(--ink,#18181b) l c h / 0.82));border-radius:var(--card-radius, var(--radius,.5rem));background:var(--card,#fff);color:var(--ink,#18181b);font-family:var(--font-body,Arial,sans-serif);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)));overflow-wrap:anywhere}
.cf-belcher-button-3 *,.cf-belcher-button-3 *::before,.cf-belcher-button-3 *::after{box-sizing:border-box}
:where(.cf-belcher-button-3) .cfb3-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
:where(.cf-belcher-button-3) .cfb3-heading{margin:0 0 1rem;font:var(--display-weight,800) clamp(1.25rem,5.4cqi,1.6rem)/1.2 var(--font-display,Arial,sans-serif);text-align:center;text-wrap:balance;text-transform:var(--display-case,none)}
:where(.cf-belcher-button-3) .cfb3-price{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.35rem 1rem;margin:0 0 1rem;padding-inline:.125rem}
:where(.cf-belcher-button-3) .cfb3-price.is-solo{justify-content:center}
:where(.cf-belcher-button-3) .cfb3-was{color:var(--danger);font-size:clamp(1rem,4.6cqi,1.35rem);font-weight:400;line-height:1.2;text-decoration:line-through;text-decoration-thickness:2px;text-decoration-color:var(--danger)}
:where(.cf-belcher-button-3) .cfb3-now{color:var(--accent,#b91c1c);font:var(--display-weight,900) clamp(1.4rem,6.4cqi,2rem)/1 var(--font-display,Arial,sans-serif);letter-spacing:var(--display-tracking, -.01em);white-space:nowrap;text-transform:var(--display-case,none)}
:where(.cf-belcher-button-3) .cfb3-btn{--badge:clamp(2.75rem,13cqi,4.25rem);--edge:oklch(from var(--button-bg,var(--cta)) calc(l - 0.08) c h);position:relative;isolation:isolate;display:grid;grid-template-columns:var(--badge) minmax(0,1fr) var(--badge);align-items:center;justify-items:center;gap:.75rem;width:100%;min-height:clamp(4.5rem,19cqi,5.75rem);margin:0;padding:.65rem clamp(.65rem,3cqi,1rem);border:1px solid var(--edge);border-radius:var(--button-radius, calc(var(--radius,.5rem) + .125rem));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,#fff));font:inherit;text-align:center;text-decoration:none;cursor:pointer;overflow:hidden;box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--card) calc(l + 0.04) c h / .3),inset 0 -4px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h),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)));transition:transform .16s cubic-bezier(.2,.7,.2,1),box-shadow .16s ease,filter .16s ease;-webkit-tap-highlight-color:transparent}
:where(.cf-belcher-button-3) .cfb3-btn::before{content:"";position:absolute;inset:1px 1px 50% 1px;z-index:-1;border-radius:var(--button-radius, calc(var(--radius,.5rem) + .125rem) calc(var(--radius,.5rem) + .125rem) 40% 40%/calc(var(--radius,.5rem) + .125rem) calc(var(--radius,.5rem) + .125rem) 18% 18%);background:linear-gradient(180deg,oklch(from var(--button-bg,var(--cta)) calc(l - 0.06) c h / 0.14),oklch(from var(--button-bg,var(--cta)) calc(l - 0.06) c h / 0.14));pointer-events:none}
:where(.cf-belcher-button-3) .cfb3-btn::after{content:"";position:absolute;top:0;bottom:0;left:-35%;z-index:-1;width:28%;background:linear-gradient(100deg,transparent,oklch(from var(--button-bg,var(--cta)) calc(l - 0.06) c h / 0.14),transparent);transform:translateX(0) skewX(-18deg);pointer-events:none;animation:cfb3-shine 1.1s .5s cubic-bezier(.4,0,.2,1) 1 both}
:where(.cf-belcher-button-3) .cfb3-badge{display:grid;place-items:center;width:var(--badge);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 28%,color-mix(in oklch,var(--button-ink, var(--cta-ink,#fff)) 82%,var(--band-ink)),var(--button-ink, var(--cta-ink,#fff)) 72%);color:var(--button-bg, var(--cta,#27272a));box-shadow:0 0 0 3px oklch(from var(--button-ink, var(--cta-ink,#fff)) l c h / 0.2),inset 0 -3px 0 oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / .16),0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.35);transition:transform .2s cubic-bezier(.2,.7,.2,1)}
:where(.cf-belcher-button-3) .cfb3-badge svg{display:block;width:48%;height:48%;stroke-width:2.4;translate:-4% -3%}
:where(.cf-belcher-button-3) .cfb3-text{display:grid;justify-items:center;gap:.35rem;min-width:0;width:100%}
:where(.cf-belcher-button-3) .cfb3-label{font:var(--button-weight,900) clamp(1.5rem,9cqi,3rem)/1 var(--button-font, var(--font-display,Arial,sans-serif));letter-spacing:.01em;text-transform:var(--button-case, uppercase);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))}
:where(.cf-belcher-button-3) .cfb3-sub{font-size:clamp(.875rem,3.4cqi,1rem);font-weight:600;line-height:1.25;text-wrap:balance;font-family:var(--button-font,var(--font-body))}
:where(.cf-belcher-button-3) .cfb3-btn:focus-visible{outline:3px solid var(--ink,#18181b);outline-offset:4px}
@media(hover:hover){:where(.cf-belcher-button-3) .cfb3-btn:not([aria-disabled=true]):hover{transform:translateY(-2px);filter:none;box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--card) calc(l + 0.04) c h / .35),inset 0 -4px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h),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)));background:oklch(from var(--button-bg,var(--cta)) calc(l - 0.06) c h)}:where(.cf-belcher-button-3) .cfb3-btn:not([aria-disabled=true]):hover::after{animation-name:cfb3-shine-hover;animation-delay:0s}:where(.cf-belcher-button-3) .cfb3-btn:not([aria-disabled=true]):hover .cfb3-badge{transform:rotate(-8deg) scale(1.04)}}
:where(.cf-belcher-button-3) .cfb3-btn.is-hover{transform:translateY(-2px);filter:none;box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--card) calc(l + 0.04) c h / .35),inset 0 -4px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h),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)));background:oklch(from var(--button-bg,var(--cta)) calc(l - 0.06) c h)}
:where(.cf-belcher-button-3) .cfb3-btn.is-hover .cfb3-badge{transform:rotate(-8deg) scale(1.04)}
:where(.cf-belcher-button-3) .cfb3-btn:not([aria-disabled=true]):active,:where(.cf-belcher-button-3) .cfb3-btn.is-active{transform:translateY(2px);filter:none;box-shadow:var(--button-shadow, inset 0 2px 6px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / .22),inset 0 -1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h),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)));background:oklch(from var(--button-bg,var(--cta)) calc(l - 0.06) c h)}
:where(.cf-belcher-button-3) .cfb3-btn.is-active .cfb3-badge{transform:scale(.96)}
:where(.cf-belcher-button-3) .cfb3-btn[aria-disabled=true]{cursor:not-allowed;opacity:.55;filter:grayscale(.6);box-shadow:var(--button-shadow, inset 0 -1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h),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-3) .cfb3-btn[aria-disabled=true]::after{animation:none;opacity:0}
:where(.cf-belcher-button-3) .cfb3-link{display:block;width:fit-content;margin:.875rem auto 0;padding:0;border:0;background:transparent;color:var(--link,var(--accent));font:var(--button-weight,700) 1rem/1.4 var(--button-font, var(--font-body,Arial,sans-serif));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;text-align:center;text-transform:var(--button-case,none)}
:where(.cf-belcher-button-3) .cfb3-link:hover,:where(.cf-belcher-button-3) .cfb3-link:focus-visible{color:oklch(from var(--link,var(--accent)) calc(l - 0.08) c h);text-decoration-color:currentColor;text-decoration-thickness:3px}
:where(.cf-belcher-button-3) .cfb3-link:focus-visible{outline:3px solid var(--ink,#18181b);outline-offset:3px;border-radius:2px}
:where(.cf-belcher-button-3) .cfb3-secure{display:flex;align-items:center;justify-content:center;gap:.5rem;margin:1rem 0 0;font-size:.95rem;line-height:1.4;text-align:center}
:where(.cf-belcher-button-3) .cfb3-secure{color:var(--muted,#52525b);font-weight:600;letter-spacing:.03em}
:where(.cf-belcher-button-3) .cfb3-secure svg{display:block;width:1.05em;height:1.05em;flex:none;stroke-width:2.25;translate:0 -.08em}
:where(.cf-belcher-button-3) .cfb3-pay{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem;margin:.875rem 0 0;padding:0;list-style:none}
:where(.cf-belcher-button-3) .cfb3-pay li{display:flex;line-height:0}
:where(.cf-belcher-button-3) .cfb3-pay svg{display:block;width:3rem;height:auto;border-radius:.25rem;filter:drop-shadow(0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.35))}
:where(.cf-belcher-button-3) .cfb3-fine{display:flex;align-items:center;justify-content:center;gap:.5rem;margin:1rem 0 0;padding-top:.875rem;border-top:1px dashed oklch(from var(--ink,#18181b) l c h / 0.2);color:var(--muted,#52525b);font-size:.875rem;font-weight:600;line-height:1.4;text-align:center}
:where(.cf-belcher-button-3) .cfb3-fine svg{display:block;width:1.15em;height:1.15em;flex:none;color:var(--ink,#18181b);translate:0 -.04em}
:where(.cf-belcher-button-3) .cfb3-reassure{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.1rem;margin:.75rem 0 0;padding:0;list-style:none}
:where(.cf-belcher-button-3) .cfb3-reassure li{display:flex;align-items:center;gap:.4rem;color:var(--muted,#52525b);font-size:.875rem;line-height:1.4}
:where(.cf-belcher-button-3) .cfb3-reassure svg{display:block;width:1.05em;height:1.05em;flex:none;color:var(--success)}
@container (max-width:26rem){:where(.cf-belcher-button-3) .cfb3-btn{gap:.5rem}}
@media(max-width:480px){.cf-belcher-button-3{padding:1.125rem 1rem 1rem}}
@keyframes cfb3-shine{from{transform:translateX(0) skewX(-18deg)}to{transform:translateX(520%) skewX(-18deg)}}
@keyframes cfb3-shine-hover{from{transform:translateX(0) skewX(-18deg)}to{transform:translateX(520%) skewX(-18deg)}}
@media(prefers-reduced-motion:reduce){.cf-belcher-button-3 *,.cf-belcher-button-3 *::before,.cf-belcher-button-3 *::after{animation:none!important;transition:none!important}:where(.cf-belcher-button-3) .cfb3-btn::after{opacity:0}:where(.cf-belcher-button-3) .cfb3-btn.is-hover .cfb3-badge,:where(.cf-belcher-button-3) .cfb3-btn:hover .cfb3-badge{transform:none!important}}
`
pieces/offer/belcher-button-3/specimen.tsx 21 lines
// One neutral, local-only example. Clicking never charges or sends anything.
import { BelcherButton3 } from "../belcher-button-3";
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;
return (
<BelcherButton3
label="Buy Now"
sublabel={b.label}
regularPrice={b.regularPrice}
price={b.price}
secureNote={b.sublabel}
finePrint={b.guarantee}
disabled={state === "disabled"}
previewState={state === "hover" || state === "active" ? state : undefined}
/>
);
}
| Name | Type | Details |
|---|---|---|
label OptionalBelcherButton3 |
string |
Default "Buy Now"
|
sublabel OptionalBelcherButton3 |
string |
|
heading OptionalBelcherButton3 |
string |
|
regularLabel OptionalBelcherButton3 |
string |
Default "Regular Price:"
|
regularPrice OptionalBelcherButton3 |
string |
|
todayLabel OptionalBelcherButton3 |
string |
Default "Today:"
|
price OptionalBelcherButton3 |
string |
|
href OptionalBelcherButton3 |
string |
|
onAction OptionalBelcherButton3 |
(event: React.MouseEvent<HTMLElement>) => void |
Default onClick
|
onClick OptionalBelcherButton3 |
(event: React.MouseEvent<HTMLElement>) => void |
|
disabled OptionalBelcherButton3 |
boolean |
Default false
|
linkLabel OptionalBelcherButton3 |
string |
|
secureNote OptionalBelcherButton3 |
string |
Default ""
|
payments OptionalBelcherButton3 |
PaymentKey[] |
Default ["visa", "mastercard", "amex", "discover", "paypal"]
|
finePrint OptionalBelcherButton3 |
string |
|
reassurance OptionalBelcherButton3 |
(string | { text: React.ReactNode })[] |
Default []
|
status OptionalBelcherButton3 |
"idle" | "success" |
|
statusMessage OptionalBelcherButton3 |
string |
|
previewState OptionalBelcherButton3 |
"hover" | "active" |
|
state OptionalBelcherButton3 |
"default" | "hover" | "active" | "disabled" | "success" |
|
copy OptionalBelcherButton3 |
Partial<{ regularPrice: string; payments: string }> |
|
paymentLabels OptionalBelcherButton3 |
Partial<Record<PaymentKey, string>> |
|
className OptionalBelcherButton3 |
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-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