Affiliate Page React template for Tailwind CSS v4
v1.1.0Updated in 1.9.0
A React affiliate program page template: a commission hero, an earnings calculator, tiers, partner quotes, an application form and FAQ.
Apply now and How it works jump down the page; the announcement pill jumps to the tiers. The hero shows a partner dashboard drawn in code. In the calculator, drag the slider (or use the arrow keys) for the number of teams you refer each month and pick what your audience mostly buys: the monthly commission after a year and the first-year total roll to their new values in USD, with the per-customer amount under them. The tiers (Partner, Pro Partner, Elite: commission, cookie window, what it takes and perks) are a table from 768px and one card per tier on phones. The application form checks name, email, a website or channel link, the audience size and at least 20 characters on how you would promote Acme; errors show under each field and focus jumps to the first one. Send application spins while it sends, then the form turns into a confirmation with Send another application. The FAQ opens one answer at a time.
Affiliate Page is a Pro React template in the React website templates category, written in TypeScript for React 19 and Tailwind CSS v4. It installs as source with npx wingo-ui@latest add affiliate-page, together with CTA Section, FAQ Section, Hero Section, Marketing Footer, Marketing Header and 13 more and the npm packages motion and lucide-react.
Built with
The sections this page is made of. In the full-screen preview, hold Alt to outline each one on the page.
Add to a project
Requirements: React 19 and Tailwind CSS v4, in Next.js (App Router or Pages), Vite or React Router. Installation guide · Next.js setup · Vite setup
npx wingo-ui@latest add affiliate-pageAffiliate Page is part of Pro, with 298 more Pro items: $8 a month or $150 once. 14-day refund before you download any Pro item. See plans
Usage
Import AffiliatePage from @/components/templates/affiliate-page.
// app/(marketing)/partners/page.tsx
"use client"
import Link from "next/link"
import { AffiliatePage } from "@/components/templates/affiliate-page"
export default function PartnersRoute() {
return (
<AffiliatePage
linkComponent={Link}
onApply={async (application) => {
const res = await fetch("/api/partners/apply", { method: "POST", body: JSON.stringify(application) })
if (!res.ok) throw new Error("Application failed")
}}
/>
)
}Props
planMixesdefault"AFFILIATE_PLAN_MIXES"AffiliatePlanMix[]The calculator's plan options: { value, label, description, monthlyBill }.
stepsdefault"AFFILIATE_STEPS"AffiliateStep[]How it works: { icon, title, description }.
tiersdefault"AFFILIATE_TIERS"AffiliateTier[]Commission tiers: { id, name, rate, cookieDays, requirement, perks, highlight? }.
testimonialsdefault"AFFILIATE_QUOTES"AffiliateQuote[]Partner quotes: { quote, name, role, company, metric? }.
faqdefault"AFFILIATE_FAQ"AffiliateFaq[]{ question, answer } pairs.
audienceSizesdefault"AFFILIATE_AUDIENCE_SIZES"AffiliateOption[]The audience size options of the form.
statsdefault"AFFILIATE_STATS"StatsSectionItem[]The bold design's numbers band: { value, decimals?, prefix?, suffix?, label }.
labelsdefault"DEFAULT_AFFILIATE_PAGE_LABELS"Partial<AffiliatePageLabels>Every visible string, the form errors included.
ratedefault0.3numberThe commission the calculator uses (0.3 = 30%).
defaultReferralsdefault5numberTeams referred per month the calculator starts on.
defaultPlanMixdefault"mixed"stringThe plan mix the calculator starts on.
maxReferralsdefault50numberThe end of the referrals slider.
designdefault"classic""classic" | "bold"The whole page's look. classic follows the layout props; bold: a soft page with gradient bands, a pill header, a magazine size title on a gradient mesh with the dashboard under it, an inverted numbers band, the earnings on an inverted panel, solid step icons with big numbers, rounder tier and form cards, a featured quote, FAQ cards, a closing card that emails the partner kit and a wordmark footer. headerProps and footerProps still win.
heroLayoutdefault"split""split" | "centered" | "stacked"split: copy left, dashboard right; centered and stacked put the dashboard under the copy. Applies to the classic design.
showDashboarddefaulttruebooleanThe drawn partner dashboard in the hero.
showCalculatordefaulttruebooleanThe earnings calculator.
showStepsdefaulttruebooleanThe How it works steps from sign up to payout.
showTiersdefaulttruebooleanThe commission tiers.
showTestimonialsdefaulttruebooleanPartner quotes.
showFaqdefaulttruebooleanThe program FAQ.
showCtadefaulttruebooleanThe closing call to action.
ctaVariantdefault"inverted""inverted" | "soft" | "split" | "plain"The look of the closing call to action. Applies to the classic design.
headerdefaulttruebooleanThe sticky marketing header; turn it off when the page sits in a site layout.
footerdefaulttruebooleanThe marketing footer.
headerPropsPartial<MarketingHeaderProps>Passed to MarketingHeader (announcement, ctaTone, items...).
footerPropsPartial<MarketingFooterProps>Passed to MarketingFooter.
onApply(application: AffiliateApplication) => (void | Promise<unknown>)Sends the application { name, email, website, audience, promotion }; a returned promise keeps the button loading and a rejection shows an error. Without it the form waits 900 ms and succeeds.
onSubscribe(email: string) => (void | Promise<unknown>)Sends the partner kit from the bold design's closing card; a rejected promise shows an error. Without it the form waits 900 ms and succeeds.
tonedefault"neutral""neutral" | "brand" | "success" | "warning" | "danger" | "info"The page tint (unless backgroundColor is set), the slider, step tiles, the yearly figure, the popular tier badge and FAQ accents.
ctaTonedefault"neutral""neutral" | "brand" | "success" | "warning" | "danger" | "info"The primary buttons of the hero, the form and the closing band.
backgrounddefault"glow""plain" | "soft" | "glow" | "aurora" | "grid" | "dots"The main background: plain is the bare page color; the others tint the page and add a glow, an aurora, a grid or dots over the first screen. A design picks its own unless you set one.
backgroundColordefault"oklch(0.62 0.14 275)"stringThe tint and glow color of the main background; follows tone when tone is not neutral.
bandBackgrounddefault"muted""muted" | "tinted" | "gradient" | "dots"The secondary background of the alternating bands. Cards, fields and tiles inside a band are lifted one step above it, so they never share its color.
bandColordefault"oklch(0.62 0.14 275)"stringThe tint of tinted and gradient bands; defaults to backgroundColor.
animateIndefaulttruebooleanThe hero rises in once on mount; off in thumbnails and under reduced motion.
localedefault"en-US"stringIntl locale for the amounts (always USD) and percentages.
linkComponentdefault"<a>"(props: LinkComponentProps) => ReactNodeThe router link for every link (next/link in an app); default the LinkProvider's.
classNamestringClasses for the root.
classNamesPartial<Record<AffiliatePageSlot, string>>Classes for hero, stats, calculator, steps, tiers, testimonials, apply, form, faq and cta.
Parts
AffiliateCalculator
componentThe earnings calculator on its own: a referrals slider, a plan mix select and the animated monthly and first-year commission. Takes div props.
planMixesdefault"AFFILIATE_PLAN_MIXES"AffiliatePlanMix[]The plan options.
defaultReferralsdefault5numberWhere the slider starts.
defaultPlanMixdefault"mixed"stringThe plan mix it starts on.
ratedefault0.3numberThe commission rate.
maxReferralsdefault50numberThe end of the slider.
tonedefault"neutral"ToneThe slider and the yearly figure.
classNamesPartial<Record<"controls" | "results", string>>Classes for the slider column and the results panel.
localedefault"en-US"stringNumber format.
labelsPartial<AffiliatePageLabels>The strings.
AffiliateTiers
componentThe tiers as a table from 768px and one card per tier on phones. Takes div props.
tiersdefault"AFFILIATE_TIERS"AffiliateTier[]The tiers.
tonedefault"neutral"ToneThe popular badge.
localedefault"en-US"stringPercent format.
labelsPartial<AffiliatePageLabels>The strings.
AffiliateApplyForm
componentThe validated application form with loading and an inline confirmation. Takes div props.
audienceSizesdefault"AFFILIATE_AUDIENCE_SIZES"AffiliateOption[]The audience size options.
onApply(application: AffiliateApplication) => (void | Promise<unknown>)Sends the application.
tonedefault"neutral"ToneThe submit button.
labelsPartial<AffiliatePageLabels>The strings.
affiliateEarnings
functionaffiliateEarnings(referralsPerMonth, monthlyBill, rate) returns { perCustomer, monthly, yearly }: the commission at month 12 and the total over the first 12 months.
AFFILIATE_PLAN_MIXES
constantMostly Pro ($144 a month), a mix ($252) and mostly Business ($360).
AFFILIATE_STEPS
constantApply, share your link, get paid.
AFFILIATE_TIERS
constantPartner 30%, Pro Partner 35% and Elite 40%.
AFFILIATE_STATS
constant1,800+ partners, $2.4M paid out, a 40% top rate and 12 months of commission.
AFFILIATE_PAGE_DESIGNS
constantThe design names, classic first: ["classic", "bold"].
AffiliatePageDesign
typeThe design prop's values: "classic" | "bold".
AFFILIATE_QUOTES
constantThree partner quotes with earnings metrics.
AFFILIATE_FAQ
constantFive program questions.
AFFILIATE_AUDIENCE_SIZES
constantFour audience size ranges.
DEFAULT_AFFILIATE_PAGE_LABELS
constantThe English strings.
AffiliateApplication
type{ name, email, website, audience, promotion }.
AffiliatePlanMix
type{ value, label, description, monthlyBill }.
AffiliateTier
type{ id, name, rate, cookieDays, requirement, perks, highlight? }.
AffiliateStep
type{ icon, title, description }.
AffiliateQuote
type{ quote, name, role, company, metric? }.
AffiliateFaq
type{ question, answer }.
AffiliateOption
typeA select option in the application form: { value, label }.
AffiliatePageProps
typeProps of AffiliatePage.
Examples
Bold design
design="bold": huge type on a gradient mesh, a numbers band, an inverted earnings panel, big step numbers and a partner kit form.
Brand tone
The marketing orange on the slider, step tiles, the yearly figure and every primary button.
Big audience, Business teams
The calculator starts at 30 teams a month, mostly on Business, with a slider up to 100.
Centered hero, short page
The dashboard under the copy, without testimonials or FAQ, and a soft closing band.
Application that fails
onApply rejects, so the form shows its error and keeps what was typed.
Dependencies
Files
- components/templates/affiliate-page.tsx
- components/templates/affiliate-page-data.ts
FAQ
Is the React Affiliate Page template free?
The preview, props and docs are free; copying the source needs a Pro plan. See plans.
How do I install Affiliate Page?
Run npx wingo-ui@latest add affiliate-page. It also adds the Wingo UI items it builds on (CTA Section, FAQ Section, Hero Section, Marketing Footer, Marketing Header and 13 more) and the npm packages motion and lucide-react. With shadcn, add the @wingo-ui registry with your API key, then run npx shadcn@latest add @wingo-ui/affiliate-page.
How does Affiliate Page behave on phones?
The tiers (Partner, Pro Partner, Elite: commission, cookie window, what it takes and perks) are a table from 768px and one card per tier on phones.
See also
New components by email
New posts, product news and occasional offers from Wingo UI. We count clicks to keep it relevant.