Slide
A multiplayer crash-style game — set your target multiplier, place your bet, and watch the slider climb. Cash out hits automatically if the slide reaches your target.
Import
import { SlideGameSDK } from '@maktubbet/sdk/slide'
import '@maktubbet/sdk/slide/styles.css'Usage
'use client'
import { useState } from 'react'
import { SlideGameSDK } from '@maktubbet/sdk/slide'
import '@maktubbet/sdk/slide/styles.css'
export default function SlidePage() {
return (
<SlideGameSDK
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)}
userName="Player123"
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
- Multiplayer rounds — bet alongside other players in real-time
- Target multiplier — set your desired cash-out point before the round starts
- Live slide animation — watch the multiplier climb in real time
- Round history — view past rounds with crash points and bet details
- Round modal — detailed provably fair data for each round
Props
See Shared Props — SlideGameSDK accepts the standard SlideGameSDKProps 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 | — | — |
userName | string | — | — |
Last updated on