Balloon
Watch the balloon inflate as the multiplier rises — cash out before it pops for maximum reward.
Import
import { BalloonGameSDK } from '@maktubbet/sdk/balloon'
import '@maktubbet/sdk/balloon/styles.css'Usage
'use client'
import { useState } from 'react'
import { BalloonGameSDK } from '@maktubbet/sdk/balloon'
import '@maktubbet/sdk/balloon/styles.css'
export default function BalloonPage() {
return (
<BalloonGameSDK
accessToken="user-jwt-token"
user={{ betCount: 0, isAuthenticated: true }}
updateBalance={(newBalance) => console.log(newBalance)}
onAuthRequired={() => console.log('Auth required')}
currency={{ code: 'USD', prefix: '$', rate: 1 }}
language="en"
logo={<span>MY LOGO</span>}
onToast={(t) => console.log('Toast:', t.title)}
theme={{
backgroundDark: '#0D1117',
backgroundDarkLight: '#161B22',
inputBackground: '#0D1117',
actionButtonColor: '#1C2333',
buttonColor: '#FFFFFF',
}}
/>
)
}Demo Mode
Demo mode is automatically enabled when a user places a bet with a $0 amount. To run the game entirely client-side without a backend session, pass isDemo — see Demo Mode.
Features
- Animated balloon — watch the balloon inflate as the multiplier climbs
- Cash out anytime — lock in your multiplier before the balloon pops
- Auto cash out — set a target multiplier to automatically collect
- Bet history — track recent results and pop points
Props
See Shared Props — BalloonGameSDK accepts the standard BalloonGameSDKProps interface.
| Prop | Type | Required | Default |
|---|---|---|---|
accessToken | string | null | ✅ | — |
user | GameUser | ✅ | — |
updateBalance | (balance: number) => void | ✅ | — |
onAuthRequired | () => void | ✅ | — |
currency | GameCurrency | — | { code: 'USD', prefix: '$', rate: 1 } |
language | string | — | 'en' |
logo | ReactNode | — | — |
onToast | (toast: ToastData) => void | — | — |
theme | GameTheme | — | — |
Last updated on