Documentation/React Suite/<VibezBillingModal />

<VibezBillingModal />

In-app credit top-up and paywall modal with 0 external icon dependencies.


`<VibezBillingModal />`

An interactive in-app top-up modal that slides in whenever a customer reaches their credit limit or token budget.

---

Code Example

tsx
'use client';
import { useState } from 'react';
import { VibezBillingModal } from 'vibezcheck/react';

export function TopUpDemo() {
  const [isOpen, setIsOpen] = useState(false);

  return (
    <div>
      <button onClick={() => setIsOpen(true)}>Open Top-Up Modal</button>

      <VibezBillingModal
        isOpen={isOpen}
        onClose={() => setIsOpen(false)}
        notice={{
          status: 'limit_reached',
          tokensUsed: 150000,
          costUSD: 5.00,
          message: 'Free credit quota reached. Add credits to keep streaming!',
        }}
        theme="light"
        testMode={true}
        onTopUp={async (amount) => {
          console.log(`User selected $${amount} top-up`);
        }}
      />
    </div>
  );
}
Interactive Component Sandbox

Live Session Telemetry Preview

Look at the floating card below to inspect the real-time <VibezSessionWidget />!

Active Session
3 turns
Session Cost
$0.0042
Tokens Used
1,450