Landing sections JS behaviour

Pricing section

The full pricing table: three plans under a monthly/yearly toggle that bumps the prices alive and flashes the “2 months free” badge, a feature-comparison grid beneath the cards and a 30-day guarantee footer — the middle plan stands out on a dark card.

Documentation

Real scenarios

The component as it is used in a product — not a specimen grid.

Beacon · Billing

Pricing that scales with you, not against you

Start free, upgrade when the team grows. Every plan runs on the same infrastructure — Frankfurt, Dublin and Singapore — only the limits differ.

Starter For side projects

$ per seat / month, billed

  • 3 team seats
  • 5 active projects
  • 50K API calls / mo
  • Community support
Most popular

Growth For shipping teams

$ per seat / month, billed

  • 10 team seats
  • 25 active projects
  • 500K API calls / mo
  • Priority support
  • Usage alerts

Scale For platforms

$ per seat / month, billed

  • Unlimited seats
  • Unlimited projects
  • SSO / SAML
  • Audit log
  • Dedicated engineer

Compare what each plan includes

Feature Starter Growth Scale
Team seats 3 10 Unlimited
Active projects 5 25 Unlimited
API calls / month 50K 500K Unlimited
Realtime dashboards Included Included Included
SSO / SAML Not included Not included Included
Audit log Not included Included Included
Support Community Priority Dedicated

Prices exclude VAT. Switching plans is prorated to the minute — no restarts, no migrations.

30-day money-back guarantee — no questions asked. Still deciding? Talk to our Dublin team

Important props

Important props
Prop Type Default What it does
interval 'monthly' | 'yearly' 'yearly' The segmented toggle with a sliding pill; all three prices bump to their new value and the savings badge only shows on yearly.
highlight string 'growth' The middle plan is featured: a dark card, the “Most popular” badge, standing taller than its neighbours.
comparison boolean true The feature comparison grid under the cards — ticks for included, dashes for not, values for counts.
guarantee slot '30-day' The guarantee footer with a shield icon: 30-day no-questions refunds plus a talk-to-sales link.
--secpr-accent color '#4F46E5' The section brand colour; the toggle pill, the savings badge and the primary button draw from it, brightening in dark mode.

Snippet

<section class="secpr" x-data="{ yearly: true }">
    <header class="secpr-head">
        <h2>Pricing without the fine print</h2>
        <div class="secpr-toggle" :data-yearly="yearly" role="group" aria-label="Billing interval">
            <button type="button" :class="!yearly && 'secpr-on'" x-on:click="yearly = false">Monthly</button>
            <button type="button" :class="yearly && 'secpr-on'" x-on:click="yearly = true">
                Yearly <em class="secpr-save" x-show="yearly" x-cloak>2 months free</em>
            </button>
        </div>
    </header>

    <div class="secpr-cards">
        <!-- the middle card is the dark, featured one -->
        <article class="secpr-card" data-featured="true">
            <span class="secpr-pop">Most popular</span>
            <h3>Growth</h3>
            <p class="secpr-price"><span class="secpr-amount" x-text="yearly ? 23 : 29"></span><small>$ per month</small></p>
            <ul><li>10 seats</li><li>25 projects</li><li>Priority support</li></ul>
            <button type="button" class="secpr-cta">Start the trial</button>
        </article>
    </div>

    <p class="secpr-guarantee"><svg aria-hidden="true">…shield…</svg>30-day money-back guarantee — no questions asked</p>
</section>

<style>
.secpr-toggle { position: relative; display: inline-flex; border: 1px solid #E7E5E4; border-radius: 999px; }
.secpr-toggle::before { content: ''; position: absolute; inset-block: 3px; inset-inline-start: 3px;
                         inline-size: calc(50% - 3px); background: #4F46E5; border-radius: 999px;
                         transition: translate .25s cubic-bezier(.2,0,0,1); }
.secpr-toggle[data-yearly='true']::before { translate: 100% 0; }
.secpr-amount { display: inline-block; font: 800 2.75rem/1 'Inter', 'Vazirmatn', sans-serif; }
.secpr-amount.secpr-bump { animation: secpr-bump .35s cubic-bezier(.2,0,0,1); }
@keyframes secpr-bump { 0% { opacity: 0; translate: 0 .35em; } 100% { opacity: 1; translate: 0 0; } }
</style>
// app/Pages/Pricing.jsx — Inertia (React) page; renders the React
// snippet below unchanged, with Inertia's Link wired into the provider.
import { Link } from '@inertiajs/react';
import { NabuXUIProvider } from '@nabuxai/ui-react';
import PricingSection from '@/components/PricingSection';

export default function Pricing() {
  return (
    <NabuXUIProvider locale="en" linkComponent={Link}>
      <main className="nx-page">
        <PricingSection />
      </main>
    </NabuXUIProvider>
  );
}
// PricingSection.jsx — animated monthly/yearly toggle, featured middle plan
import { useState } from 'react';
import '@nabuxai/ui-core/css';

const PLANS = [
  { id: 'starter', name: 'Starter', tagline: 'For side projects', monthly: 12, yearly: 9,
    perks: ['3 seats', '5 projects', 'Community support'] },
  { id: 'growth', name: 'Growth', tagline: 'For shipping teams', monthly: 29, yearly: 23, featured: true,
    perks: ['10 seats', '25 projects', 'Priority support', 'Usage alerts'] },
  { id: 'scale', name: 'Scale', tagline: 'For platforms', monthly: 79, yearly: 63,
    perks: ['Unlimited seats', 'SSO / SAML', 'Audit log', 'Dedicated engineer'] },
];

export default function PricingSection() {
  const [yearly, setYearly] = useState(true);

  return (
    <>
      <style>{`
        .scp { display: grid; gap: 2rem; justify-items: center; padding: 3rem 1.5rem;
               font: 400 .9375rem/1.5 'Inter', sans-serif; background: #FAFAF9; color: #1C1917; }
        .scp-toggle { position: relative; display: inline-flex; border: 1px solid #E7E5E4; border-radius: 999px; background: #fff; }
        .scp-toggle::before { content: ''; position: absolute; inset-block: 3px; inset-inline-start: 3px;
                              inline-size: calc(50% - 3px); background: #4F46E5; border-radius: 999px;
                              transition: translate .25s cubic-bezier(.2, 0, 0, 1); }
        .scp-toggle[data-yearly='true']::before { translate: 100% 0; }
        .scp-toggle button { position: relative; z-index: 1; padding: .55rem 1.25rem; border: none; background: transparent;
                             font: 600 .875rem/1.2 'Inter', sans-serif; color: #78716C; cursor: pointer; transition: color .25s; }
        .scp-toggle button[aria-pressed='true'] { color: #fff; }
        .scp-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(13rem, 1fr)); }
        .scp-card { display: grid; gap: .9rem; align-content: start; padding: 1.75rem 1.5rem;
                    border: 1px solid #E7E5E4; border-radius: 1.25rem; background: #fff; }
        .scp-card[data-featured='true'] { background: #171512; color: #FAFAF9; border-color: #171512;
                                          translate: 0 -1rem; box-shadow: 0 24px 48px -24px rgba(28, 25, 23, .5); }
        .scp-amount { display: inline-block; font: 800 2.75rem/1 'Inter', sans-serif; letter-spacing: -.03em; }
        .scp-amount.scp-bump { animation: scp-bump .35s cubic-bezier(.2, 0, 0, 1); }
        @keyframes scp-bump { from { opacity: 0; translate: 0 .35em; } to { opacity: 1; translate: 0 0; } }
        @media (max-width: 640px) { .scp-cards { grid-template-columns: 1fr; } .scp-card[data-featured='true'] { translate: none; } }
      `}</style>
      <section className="scp">
        <div className="scp-toggle" data-yearly={yearly} role="group" aria-label="Billing interval">
          <button type="button" aria-pressed={!yearly} onClick={() => setYearly(false)}>Monthly</button>
          <button type="button" aria-pressed={yearly} onClick={() => setYearly(true)}>Yearly · 2 months free</button>
        </div>
        <div className="scp-cards">
          {PLANS.map((p) => (
            <article className="scp-card" data-featured={!!p.featured} key={p.id}>
              <h3>{p.name} <small>{p.tagline}</small></h3>
              {/* keying the span on the interval remounts it, replaying the bump */}
              <p><span key={String(yearly)} className="scp-amount scp-bump">{yearly ? p.yearly : p.monthly}</span> $/mo</p>
              <ul>{p.perks.map((perk) => <li key={perk}>{perk}</li>)}</ul>
              <button type="button">{p.featured ? 'Start the trial' : `Choose ${p.name}`}</button>
            </article>
          ))}
        </div>
      </section>
    </>
  );
}
<!-- PricingSection.vue — animated monthly/yearly toggle, featured middle plan -->
<script setup lang="ts">
import { ref } from 'vue';
import '@nabuxai/ui-core/css';

const plans = [
  { id: 'starter', name: 'Starter', tagline: 'For side projects', monthly: 12, yearly: 9,
    perks: ['3 seats', '5 projects', 'Community support'] },
  { id: 'growth', name: 'Growth', tagline: 'For shipping teams', monthly: 29, yearly: 23, featured: true,
    perks: ['10 seats', '25 projects', 'Priority support', 'Usage alerts'] },
  { id: 'scale', name: 'Scale', tagline: 'For platforms', monthly: 79, yearly: 63,
    perks: ['Unlimited seats', 'SSO / SAML', 'Audit log', 'Dedicated engineer'] },
];
const yearly = ref(true);
</script>

<template>
  <section class="scp">
    <div class="scp-toggle" :data-yearly="yearly" role="group" aria-label="Billing interval">
      <button type="button" :aria-pressed="!yearly" @click="yearly = false">Monthly</button>
      <button type="button" :aria-pressed="yearly" @click="yearly = true">Yearly · 2 months free</button>
    </div>
    <div class="scp-cards">
      <article v-for="p in plans" :key="p.id" class="scp-card" :data-featured="!!p.featured">
        <h3>{{ p.name }} <small>{{ p.tagline }}</small></h3>
        <!-- keying the span on the interval remounts it, replaying the bump -->
        <p><span :key="String(yearly)" class="scp-amount scp-bump">{{ yearly ? p.yearly : p.monthly }}</span> $/mo</p>
        <ul><li v-for="perk in p.perks" :key="perk">{{ perk }}</li></ul>
        <button type="button">{{ p.featured ? 'Start the trial' : `Choose ${p.name}` }}</button>
      </article>
    </div>
  </section>
</template>

<style scoped>
.scp { display: grid; gap: 2rem; justify-items: center; padding: 3rem 1.5rem;
       font: 400 .9375rem/1.5 'Inter', sans-serif; background: #FAFAF9; color: #1C1917; }
.scp-toggle { position: relative; display: inline-flex; border: 1px solid #E7E5E4; border-radius: 999px; background: #fff; }
.scp-toggle::before { content: ''; position: absolute; inset-block: 3px; inset-inline-start: 3px;
                      inline-size: calc(50% - 3px); background: #4F46E5; border-radius: 999px;
                      transition: translate .25s cubic-bezier(.2, 0, 0, 1); }
.scp-toggle[data-yearly='true']::before { translate: 100% 0; }
.scp-toggle button { position: relative; z-index: 1; padding: .55rem 1.25rem; border: none; background: transparent;
                     font: 600 .875rem/1.2 'Inter', sans-serif; color: #78716C; cursor: pointer; transition: color .25s; }
.scp-toggle button[aria-pressed='true'] { color: #fff; }
.scp-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(13rem, 1fr)); }
.scp-card { display: grid; gap: .9rem; align-content: start; padding: 1.75rem 1.5rem;
            border: 1px solid #E7E5E4; border-radius: 1.25rem; background: #fff; }
.scp-card[data-featured='true'] { background: #171512; color: #FAFAF9; border-color: #171512;
                                  translate: 0 -1rem; box-shadow: 0 24px 48px -24px rgba(28, 25, 23, .5); }
.scp-amount { display: inline-block; font: 800 2.75rem/1 'Inter', sans-serif; letter-spacing: -.03em; }
.scp-amount.scp-bump { animation: scp-bump .35s cubic-bezier(.2, 0, 0, 1); }
@keyframes scp-bump { from { opacity: 0; translate: 0 .35em; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 640px) { .scp-cards { grid-template-columns: 1fr; } .scp-card[data-featured='true'] { translate: none; } }
</style>
<!-- PricingSection.svelte — animated monthly/yearly toggle, featured middle plan -->
<script lang="ts">
  import '@nabuxai/ui-core/css';

  const plans = [
    { id: 'starter', name: 'Starter', tagline: 'For side projects', monthly: 12, yearly: 9,
      perks: ['3 seats', '5 projects', 'Community support'] },
    { id: 'growth', name: 'Growth', tagline: 'For shipping teams', monthly: 29, yearly: 23, featured: true,
      perks: ['10 seats', '25 projects', 'Priority support', 'Usage alerts'] },
    { id: 'scale', name: 'Scale', tagline: 'For platforms', monthly: 79, yearly: 63,
      perks: ['Unlimited seats', 'SSO / SAML', 'Audit log', 'Dedicated engineer'] },
  ];
  let yearly = $state(true);
</script>

<section class="scp">
  <div class="scp-toggle" data-yearly={yearly} role="group" aria-label="Billing interval">
    <button type="button" aria-pressed={!yearly} onclick={() => (yearly = false)}>Monthly</button>
    <button type="button" aria-pressed={yearly} onclick={() => (yearly = true)}>Yearly · 2 months free</button>
  </div>
  <div class="scp-cards">
    {#each plans as p (p.id)}
      <article class="scp-card" data-featured={!!p.featured}>
        <h3>{p.name} <small>{p.tagline}</small></h3>
        <!-- keying the span on the interval remounts it, replaying the bump -->
        {#key yearly}
          <p><span class="scp-amount scp-bump">{yearly ? p.yearly : p.monthly}</span> $/mo</p>
        {/key}
        <ul>{#each p.perks as perk (perk)}<li>{perk}</li>{/each}</ul>
        <button type="button">{p.featured ? 'Start the trial' : `Choose ${p.name}`}</button>
      </article>
    {/each}
  </div>
</section>

<style>
.scp { display: grid; gap: 2rem; justify-items: center; padding: 3rem 1.5rem;
       font: 400 .9375rem/1.5 'Inter', sans-serif; background: #FAFAF9; color: #1C1917; }
.scp-toggle { position: relative; display: inline-flex; border: 1px solid #E7E5E4; border-radius: 999px; background: #fff; }
.scp-toggle::before { content: ''; position: absolute; inset-block: 3px; inset-inline-start: 3px;
                      inline-size: calc(50% - 3px); background: #4F46E5; border-radius: 999px;
                      transition: translate .25s cubic-bezier(.2, 0, 0, 1); }
.scp-toggle[data-yearly='true']::before { translate: 100% 0; }
.scp-toggle button { position: relative; z-index: 1; padding: .55rem 1.25rem; border: none; background: transparent;
                     font: 600 .875rem/1.2 'Inter', sans-serif; color: #78716C; cursor: pointer; transition: color .25s; }
.scp-toggle button[aria-pressed='true'] { color: #fff; }
.scp-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(13rem, 1fr)); }
.scp-card { display: grid; gap: .9rem; align-content: start; padding: 1.75rem 1.5rem;
            border: 1px solid #E7E5E4; border-radius: 1.25rem; background: #fff; }
.scp-card[data-featured='true'] { background: #171512; color: #FAFAF9; border-color: #171512;
                                  translate: 0 -1rem; box-shadow: 0 24px 48px -24px rgba(28, 25, 23, .5); }
.scp-amount { display: inline-block; font: 800 2.75rem/1 'Inter', sans-serif; letter-spacing: -.03em; }
.scp-amount.scp-bump { animation: scp-bump .35s cubic-bezier(.2, 0, 0, 1); }
@keyframes scp-bump { from { opacity: 0; translate: 0 .35em; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 640px) { .scp-cards { grid-template-columns: 1fr; } .scp-card[data-featured='true'] { translate: none; } }
</style>