Skip to Content
Advanced: Direct SDKReact IntegrationDrop

Drop

Watch a ball drop through tower levels — the further it falls, the bigger the multiplier.

Import

import { DropGameSDK } from '@maktubbet/sdk/drop' import '@maktubbet/sdk/drop/styles.css'

You can also import from the root package:

import { DropGameSDK } from '@maktubbet/sdk'

Usage

'use client' import { useState } from 'react' import { DropGameSDK } from '@maktubbet/sdk/drop' import '@maktubbet/sdk/drop/styles.css' export default function DropPage() { return ( <DropGameSDK 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

  • Tower levels — 8 levels with escalating multipliers from 0.3x to 63.71x
  • Ball drop animation — ball descends through levels with smooth sequential animation
  • Dynamic bars — bars light up green as the ball passes through each level
  • Autobet — automated consecutive bets
  • Theme-aware — tower bars adapt to the dark background theme

Props

See Shared PropsDropGameSDK accepts the standard DropGameSDKProps interface.

PropTypeRequiredDefault
accessTokenstring | null
userGameUser
updateBalance(balance: number) => void
onAuthRequired() => void
currencyGameCurrency{ code: 'USD', prefix: '$', rate: 1 }
languagestring'en'
logoReactNode
onToast(toast: ToastData) => void
themeGameTheme
Last updated on