1 GitHub star = 1 new component.

Star the repo
Agency & Marketing

Agency Pricing Packages

Agency pricing with a tab per service, three packages each and a monthly / 6-month billing switch for retainers.

pricingtabsretaineragency
Live Preview

Pricing

Transparent pricing, no percentage of spend

Fixed monthly fees for retainers, fixed prices for projects. Ad spend is paid directly to the platforms.

Monthly6-month plan โˆ’10%

Launch

Up to โ‚ฌ15k / month ad spend.

โ‚ฌ1,900/ month

  • 2 ad platforms
  • 6 new ads / month
  • Conversion tracking
  • Monthly report
Get started โ€” Paid Ads Launch

Scale

โ‚ฌ60k+ / month ad spend.

โ‚ฌ5,900/ month

  • All platforms
  • Weekly creative
  • Marketing mix modelling
  • Dedicated team
Get started โ€” Paid Ads Scale

All prices exclude VAT. Retainers have a 3-month initial term, then roll monthly.

Usage

Copy and paste this code into your React component:

tsx
import { AgencyPricingPackages } from 'react-component-kit-ui/sections';

<AgencyPricingPackages tabs={[{ id: 'seo', label: 'SEO', packages: [{ name: 'Starter', price: 1500, billing: 'monthly', note: 'One market.', features: ['Audit', '4 pages / mo'] }] }]} />

Manual Installation

If you are not using the npm package, create a new file and paste the following code: src/components/sections/AgencyPricingPackages.tsx + AgencyPricingPackages.css:

AgencyPricingPackages.tsx
'use client';

import { useEffect, useRef, useId } from 'react';
import './AgencyPricingPackages.css';

/** class:list โ†’ className */
function cx(...args: unknown[]): string {
  const out: string[] = [];
  const walk = (v: unknown) => {
    if (!v) return;
    if (typeof v === 'string' || typeof v === 'number') out.push(String(v));
    else if (Array.isArray(v)) v.forEach(walk);
    else if (typeof v === 'object') for (const [k, on] of Object.entries(v as Record<string, unknown>)) if (on) out.push(k);
  };
  args.forEach(walk);
  return out.join(' ');
}

interface Pkg { name: string; price: number; billing: 'monthly' | 'project'; note: string; features: string[]; featured?: boolean }

interface Tab { id: string; label: string; packages: Pkg[] }

/**
 * AgencyPricingPackages โ€” Agency pricing with one tab per service (Ads, SEO, Webโ€ฆ), three
 * packages per tab and a billing switch (monthly / 6-month commitment with discount) for retainers.
 * One-off project prices are shown as "fixed price". With a single tab the switcher is hidden.
 *
 * @param {string} eyebrow - Small label. Default 'Pricing'.
 * @param {string} title - Heading. Default 'Transparent pricing, no percentage of spend'.
 * @param {string} text - Intro paragraph.
 * @param {Array<{id: string, label: string, packages: Array<{name: string, price: number, billing: 'monthly'|'project', note: string, features: string[], featured?: boolean}>}>} tabs - Services and their packages.
 * @param {string} initial - Tab id selected first. Default: first tab.
 * @param {number} discount - Discount (%) for the 6-month commitment. Default 10.
 * @param {string} currency - ISO currency. Default 'EUR'.
 * @param {string} locale - Number locale. Default 'en-IE'.
 * @param {{label: string, href: string}} cta - Package button. Default 'Get started'.
 * @param {string} footnote - Line under the cards.
 * @param {string} className - Extra class.
 *
 * Accessibility: WAI-ARIA tabs (arrow keys, Home/End) and a switch (role="switch") for billing;
 * prices update in place and the change is announced in a polite live region.
 */
export interface AgencyPricingPackagesProps {
  eyebrow?: string;
  title?: string;
  text?: string;
  tabs?: Tab[];
  initial?: string;
  discount?: number;
  currency?: string;
  locale?: string;
  cta?: { label: string; href: string };
  footnote?: string;
  className?: string;
}

export function AgencyPricingPackages({
  eyebrow = 'Pricing',
  title = 'Transparent pricing, no percentage of spend',
  text = 'Fixed monthly fees for retainers, fixed prices for projects. Ad spend is paid directly to the platforms.',
  tabs = [
    { id: 'ads', label: 'Paid Ads', packages: [
      { name: 'Launch', price: 1900, billing: 'monthly', note: 'Up to โ‚ฌ15k / month ad spend.', features: ['2 ad platforms', '6 new ads / month', 'Conversion tracking', 'Monthly report'] },
      { name: 'Growth', price: 3400, billing: 'monthly', note: 'โ‚ฌ15โ€“60k / month ad spend.', features: ['4 ad platforms', '12 new ads / month', 'Server-side tracking', 'Landing page tests', 'Weekly report'], featured: true },
      { name: 'Scale', price: 5900, billing: 'monthly', note: 'โ‚ฌ60k+ / month ad spend.', features: ['All platforms', 'Weekly creative', 'Marketing mix modelling', 'Dedicated team'] },
    ] },
    { id: 'seo', label: 'SEO', packages: [
      { name: 'Foundations', price: 1500, billing: 'monthly', note: 'Fix the basics, grow one market.', features: ['Technical fixes', '4 pages / month', 'Rank tracking', 'Monthly report'] },
      { name: 'Authority', price: 2900, billing: 'monthly', note: 'Win competitive keywords.', features: ['8 articles / month', 'Digital PR / quarter', 'Local SEO', 'Revenue dashboard'], featured: true },
      { name: 'Enterprise', price: 4800, billing: 'monthly', note: 'Many markets, large sites.', features: ['International SEO', '16 articles / month', 'Monthly PR', 'Dev hours included'] },
    ] },
    { id: 'web', label: 'Websites', packages: [
      { name: 'Landing page', price: 3200, billing: 'project', note: 'One page for a launch.', features: ['Copy & design', 'React build', 'A/B test setup'] },
      { name: 'Website', price: 9500, billing: 'project', note: 'Up to 12 templates.', features: ['UX & content', 'Design system', 'Headless CMS', 'SEO migration'], featured: true },
      { name: 'E-commerce', price: 18000, billing: 'project', note: 'Headless Shopify.', features: ['Shopify + React', 'Checkout UX', 'Integrations', 'CRO roadmap'] },
    ] },
  ],
  initial,
  discount = 10,
  currency = 'EUR',
  locale = 'en-IE',
  cta = { label: 'Get started', href: '#contact' },
  footnote = 'All prices exclude VAT. Retainers have a 3-month initial term, then roll monthly.',
  className = '',
}: AgencyPricingPackagesProps) {
  const uid = `app-${useId().replace(/[^a-zA-Z0-9]/g, '')}`;
  const first = tabs.find((t) => t.id === initial)?.id ?? tabs[0]?.id;
  const fmt = (n: number) => new Intl.NumberFormat(locale, { style: 'currency', currency, maximumFractionDigits: 0 }).format(n);
  const single = tabs.length < 2;
  const hasMonthly = (t: Tab) => t.packages.some((p) => p.billing === 'monthly');

  // Client-side behaviour: runs once after mount.
  const mounted = useRef(false);
  useEffect(() => {
    if (mounted.current) return;
    mounted.current = true;
    document.querySelectorAll<HTMLElement>('[data-agency-pricing]:not([data-bound])').forEach((root) => {
        root.dataset.bound = '';
        const tabs = Array.from(root.querySelectorAll<HTMLButtonElement>('[role="tab"]'));
        const billingWrap = root.querySelector<HTMLElement>('[data-billing-wrap]');
        const sw = root.querySelector<HTMLButtonElement>('[data-billing]');
        const live = root.querySelector<HTMLElement>('[data-live]');
        const discount = Number(root.dataset.discount) || 0;
        const fmt = new Intl.NumberFormat(root.dataset.locale || 'en', { style: 'currency', currency: root.dataset.currency || 'EUR', maximumFractionDigits: 0 });
    
        const select = (tab: HTMLButtonElement, focus = false) => {
          tabs.forEach((t) => {
            const on = t === tab;
            t.setAttribute('aria-selected', String(on));
            t.tabIndex = on ? 0 : -1;
            const panel = root.querySelector<HTMLElement>(`#${t.getAttribute('aria-controls')}`);
            if (panel) panel.hidden = !on;
          });
          if (billingWrap) billingWrap.hidden = !tab.hasAttribute('data-monthly');
          if (focus) tab.focus();
        };
        tabs.forEach((t, i) => {
          t.addEventListener('click', () => select(t));
          t.addEventListener('keydown', (e) => {
            const k = e.key;
            let n = -1;
            if (k === 'ArrowRight') n = (i + 1) % tabs.length;
            else if (k === 'ArrowLeft') n = (i - 1 + tabs.length) % tabs.length;
            else if (k === 'Home') n = 0;
            else if (k === 'End') n = tabs.length - 1;
            if (n >= 0) { e.preventDefault(); select(tabs[n], true); }
          });
        });
    
        sw?.addEventListener('click', () => {
          const on = sw.getAttribute('aria-checked') !== 'true';
          sw.setAttribute('aria-checked', String(on));
          root.querySelectorAll<HTMLElement>('[data-price]').forEach((el) => {
            const base = Number(el.dataset.price);
            el.textContent = fmt.format(on ? Math.round(base * (1 - discount / 100)) : base);
          });
          if (live) live.textContent = on ? `6-month plan selected: ${discount}% off monthly prices.` : 'Monthly billing selected.';
        });
      });
    // eslint-disable-next-line react-hooks/exhaustive-deps
  }, []);

  return (
    <>
      <div className="app-cq" data-rk-17fea4="">
      <section className={cx(['app', className])} data-agency-pricing data-discount={discount} data-currency={currency} data-locale={locale} data-rk-17fea4="">
        <header className="app__head" data-rk-17fea4="">
          {eyebrow && <p className="app__eyebrow" data-rk-17fea4="">{eyebrow}</p>}
          <h2 className="app__title" data-rk-17fea4="">{title}</h2>
          {text && <p className="app__text" data-rk-17fea4="">{text}</p>}
        </header>
      
        <div className="app__controls" data-rk-17fea4="">
          {!single && (
            <div className="app__tabs" role="tablist" aria-label="Service" data-rk-17fea4="">
              {tabs.map((t, __i: number) => (
                <button key={__i} type="button" role="tab" className="app__tab" id={`${uid}-tab-${t.id}`} aria-controls={`${uid}-panel-${t.id}`} aria-selected={t.id === first ? 'true' : 'false'} tabIndex={t.id === first ? 0 : -1} data-tab={t.id} data-monthly={hasMonthly(t) ? '' : undefined} data-rk-17fea4="">{t.label}</button>
              ))}
            </div>
          )}
          <div className="app__billing" data-billing-wrap hidden={!hasMonthly(tabs.find((t) => t.id === first) ?? tabs[0])} data-rk-17fea4="">
            <span id={`${uid}-bill`} data-rk-17fea4="">Monthly</span>
            <button type="button" role="switch" aria-checked="false" aria-labelledby={`${uid}-bill ${uid}-bill-6`} className="app__switch" data-billing data-rk-17fea4=""><span data-rk-17fea4=""></span></button>
            <span id={`${uid}-bill-6`} data-rk-17fea4="">6-month plan <em data-rk-17fea4="">โˆ’{discount}%</em></span>
          </div>
        </div>
      
        {tabs.map((t, __i: number) => (
          <div key={__i} className="app__panel" role={single ? undefined : 'tabpanel'} id={`${uid}-panel-${t.id}`} aria-labelledby={single ? undefined : `${uid}-tab-${t.id}`} hidden={t.id !== first} tabIndex={single ? undefined : 0} data-rk-17fea4="">
            <div className="app__grid" data-rk-17fea4="">
              {t.packages.map((p, __i: number) => (
                <article key={__i} className={cx(['app__card', { 'is-featured': p.featured }])} data-rk-17fea4="">
                  {p.featured && <span className="app__flag" data-rk-17fea4="">Most popular</span>}
                  <h3 className="app__name" data-rk-17fea4="">{p.name}</h3>
                  <p className="app__note" data-rk-17fea4="">{p.note}</p>
                  <p className="app__price" data-rk-17fea4="">
                    <strong data-price={p.billing === 'monthly' ? p.price : undefined} data-rk-17fea4="">{fmt(p.price)}</strong>
                    <span data-rk-17fea4="">{p.billing === 'monthly' ? '/ month' : 'fixed price'}</span>
                  </p>
                  <ul className="app__features" data-rk-17fea4="">
                    {p.features.map((f, __i: number) => <li key={__i} data-rk-17fea4=""><span aria-hidden="true" data-rk-17fea4="">โœ“</span>{f}</li>)}
                  </ul>
                  {cta && <a className="app__cta" href={cta.href} data-rk-17fea4="">{cta.label}<span className="sr-only" data-rk-17fea4=""> โ€” {t.label} {p.name}</span></a>}
                </article>
              ))}
            </div>
          </div>
        ))}
      
        {footnote && <p className="app__foot" data-rk-17fea4="">{footnote}</p>}
        <p className="sr-only" aria-live="polite" data-live data-rk-17fea4=""></p>
      </section>
      </div>
    </>
  );
}

export default AgencyPricingPackages;
AgencyPricingPackages.css
.app-cq:where([data-rk-17fea4]) { container-type: inline-size; }
.app:where([data-rk-17fea4]) { color: var(--c-text-1, #fff); }
.app__head:where([data-rk-17fea4]) { max-width: 46rem; margin-bottom: clamp(1.5rem, 4cqi, 2.5rem); }
.app__eyebrow:where([data-rk-17fea4]) { margin: 0 0 var(--sp-3, 0.75rem); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-text-2, #a3a3a3); }
.app__title:where([data-rk-17fea4]) { margin: 0; font-size: clamp(2rem, 5cqi, 3.6rem); font-weight: 900; line-height: 1; letter-spacing: -0.05em; text-wrap: balance; }
.app__text:where([data-rk-17fea4]) { margin: var(--sp-4, 1rem) 0 0; font-size: 1.05rem; line-height: 1.6; color: var(--c-text-2, #a3a3a3); }

.app__controls:where([data-rk-17fea4]) { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-4, 1rem); margin-bottom: var(--sp-6, 1.5rem); }
.app__tabs:where([data-rk-17fea4]) { display: inline-flex; padding: 5px; border-radius: 999px; background: rgb(var(--ink-rgb, 255 255 255) / 0.07); }
.app__tab:where([data-rk-17fea4]) { min-height: 46px; padding: 0 1.25rem; border: 0; border-radius: 999px; background: none; color: var(--c-text-2, #a3a3a3); font: inherit; font-weight: 800; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.app__tab[aria-selected='true']:where([data-rk-17fea4]) { background: var(--c-text-1, #fff); color: var(--c-bg, #050505); }
.app__tab:focus-visible:where([data-rk-17fea4]) { outline: 2px solid var(--agency-accent, var(--c-primary-light, #d4a017)); outline-offset: 2px; }
.app__billing:where([data-rk-17fea4]) { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 700; color: var(--c-text-2, #a3a3a3); }
.app__billing[hidden]:where([data-rk-17fea4]) { display: none; }
.app__billing:where([data-rk-17fea4]) em:where([data-rk-17fea4]) { font-style: normal; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--agency-accent, var(--c-primary-light, #d4a017)); color: var(--c-on-primary, #050505); font-weight: 900; }
.app__switch:where([data-rk-17fea4]) { position: relative; width: 54px; height: 30px; border: 0; border-radius: 999px; background: rgb(var(--ink-rgb, 255 255 255) / 0.18); cursor: pointer; transition: background 0.2s ease; }
.app__switch:where([data-rk-17fea4]) span:where([data-rk-17fea4]) { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--c-text-1, #fff); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.app__switch[aria-checked='true']:where([data-rk-17fea4]) { background: var(--agency-accent, var(--c-primary-light, #d4a017)); }
.app__switch[aria-checked='true']:where([data-rk-17fea4]) span:where([data-rk-17fea4]) { transform: translateX(24px); background: var(--c-on-primary, #050505); }
.app__switch:focus-visible:where([data-rk-17fea4]) { outline: 2px solid var(--agency-accent, var(--c-primary-light, #d4a017)); outline-offset: 3px; }

.app__panel:focus-visible:where([data-rk-17fea4]) { outline: none; }
.app__grid:where([data-rk-17fea4]) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--sp-4, 1rem); }
.app__card:where([data-rk-17fea4]) { position: relative; display: flex; flex-direction: column; gap: var(--sp-3, 0.75rem); padding: clamp(1.4rem, 3cqi, 2rem); border-radius: var(--r-xl, 24px); border: 1.5px solid var(--c-border, rgba(255, 255, 255, 0.12)); background: var(--c-bg-1, #0d0d0d); }
.app__card.is-featured:where([data-rk-17fea4]) { border-color: var(--c-text-1, #fff); box-shadow: 8px 8px 0 var(--agency-accent, var(--c-primary-light, #d4a017)); }
.app__flag:where([data-rk-17fea4]) { position: absolute; top: -13px; right: 20px; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--agency-accent, var(--c-primary-light, #d4a017)); color: var(--c-on-primary, #050505); font-size: 0.75rem; font-weight: 900; }
.app__name:where([data-rk-17fea4]) { margin: 0; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.03em; }
.app__note:where([data-rk-17fea4]) { margin: 0; font-size: 0.92rem; color: var(--c-text-2, #a3a3a3); }
.app__price:where([data-rk-17fea4]) { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: var(--sp-2, 0.5rem) 0; }
.app__price:where([data-rk-17fea4]) strong:where([data-rk-17fea4]) { font-size: clamp(2.2rem, 5cqi, 3rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.app__price:where([data-rk-17fea4]) span:where([data-rk-17fea4]) { font-size: 0.9rem; color: var(--c-text-2, #a3a3a3); }
.app__features:where([data-rk-17fea4]) { display: grid; gap: 8px; margin: 0 0 var(--sp-4, 1rem); padding: var(--sp-4, 1rem) 0 0; list-style: none; border-top: 1px solid var(--c-border, rgba(255, 255, 255, 0.12)); }
.app__features:where([data-rk-17fea4]) li:where([data-rk-17fea4]) { display: flex; gap: 8px; font-size: 0.95rem; }
.app__features:where([data-rk-17fea4]) span:where([data-rk-17fea4]) { color: var(--agency-ink, var(--c-primary-light, #d4a017)); font-weight: 900; }
.app__cta:where([data-rk-17fea4]) { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; margin-top: auto; border-radius: 999px; border: 1.5px solid currentColor; color: inherit; font-weight: 800; text-decoration: none; transition: background 0.2s ease, color 0.2s ease; }
.app__cta:hover:where([data-rk-17fea4]) { background: var(--c-text-1, #fff); color: var(--c-bg, #050505); }
.is-featured:where([data-rk-17fea4]) .app__cta:where([data-rk-17fea4]) { background: var(--agency-accent, var(--c-primary-light, #d4a017)); border-color: transparent; color: var(--c-on-primary, #050505); }
.app__cta:focus-visible:where([data-rk-17fea4]) { outline: 2px solid var(--agency-accent, var(--c-primary-light, #d4a017)); outline-offset: 3px; }
.app__foot:where([data-rk-17fea4]) { margin: var(--sp-6, 1.5rem) 0 0; font-size: 0.85rem; color: var(--c-text-3, #777); }
.sr-only:where([data-rk-17fea4]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .app__switch:where([data-rk-17fea4]) span:where([data-rk-17fea4]), .app__tab:where([data-rk-17fea4]), .app__cta:where([data-rk-17fea4]) { transition: none; } }