Installation
The EngageFabric React components are currently available for enterprise customers and early access partners.
Contact us at support@engagefabric.cloud to get access.
Setup
Wrap your app with the EngageFabric provider:Components
PlayerHeader
Display player’s level, XP, and currencies:| Prop | Type | Default | Description |
|---|---|---|---|
playerId | string | required | Player ID to display |
showLevel | boolean | true | Show level badge |
showXP | boolean | true | Show XP progress bar |
showCurrencies | string[] | [] | Currency IDs to display |
className | string | - | Additional CSS classes |
QuestList
Display a list of quests with progress:| Prop | Type | Default | Description |
|---|---|---|---|
playerId | string | required | Player ID |
filter | string | 'active' | Filter quests |
onQuestClick | function | - | Click handler |
emptyMessage | string | - | Message when no quests |
AdventureOverview
Display adventure/season information:Leaderboard
Display rankings:| Prop | Type | Default | Description |
|---|---|---|---|
leaderboardId | string | required | Leaderboard ID |
limit | number | 10 | Number of entries |
highlightPlayerId | string | - | Highlight this player |
showRankChange | boolean | false | Show rank changes |