Skip to main content

AchievementProviderProps

Defined in: src/core/types.ts:126

Properties

badgesButtonPosition?

optional badgesButtonPosition: "top-left" | "top-right" | "bottom-left" | "bottom-right"

Defined in: src/core/types.ts:131


children

children: ReactNode

Defined in: src/core/types.ts:127


config

config: AchievementConfiguration

Defined in: src/core/types.ts:128


icons?

optional icons: Record<string, string>

Defined in: src/core/types.ts:133


initialState?

optional initialState: InitialAchievementMetrics & object

Defined in: src/core/types.ts:129

Type Declaration

previouslyAwardedAchievements?

optional previouslyAwardedAchievements: string[]


onAchievementUnlocked()?

optional onAchievementUnlocked: (achievement) => void

Defined in: src/core/types.ts:135

Parameters

achievement

AchievementDetails

Returns

void


storage?

optional storage: AchievementStorage

Defined in: src/core/types.ts:134


storageKey?

optional storageKey: string

Defined in: src/core/types.ts:130


styles?

optional styles: Partial<StylesProps>

Defined in: src/core/types.ts:132