Skip to main content

AchievementProviderProps

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

Properties

badgesButtonPosition?

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

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


children

children: ReactNode

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


config

config: AchievementConfiguration

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


icons?

optional icons: Record<string, string>

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


initialState?

optional initialState: InitialAchievementMetrics & object

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

Type Declaration

previouslyAwardedAchievements?

optional previouslyAwardedAchievements: string[]


onAchievementUnlocked()?

optional onAchievementUnlocked: (achievement) => void

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

Parameters

achievement

AchievementDetails

Returns

void


storage?

optional storage: AchievementStorage

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


storageKey?

optional storageKey: string

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


styles?

optional styles: Partial<StylesProps>

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