Skip to main content

NotificationProps

Defined in: src/core/ui/interfaces.ts:12

Notification component interface Displays achievement unlock notifications

Properties​

achievement​

achievement: AchievementWithStatus

Defined in: src/core/ui/interfaces.ts:13


duration?​

optional duration: number

Defined in: src/core/ui/interfaces.ts:15


icons?​

optional icons: Record<string, string>

Defined in: src/core/ui/interfaces.ts:18


onClose()?​

optional onClose: () => void

Defined in: src/core/ui/interfaces.ts:14

Returns​

void


position?​

optional position: NotificationPosition

Defined in: src/core/ui/interfaces.ts:16


stackIndex?​

optional stackIndex: number

Defined in: src/core/ui/interfaces.ts:24

Position in the active notification stack. Built-in notifications use this to avoid overlap when multiple achievements unlock from the same update.


theme?​

optional theme: string

Defined in: src/core/ui/interfaces.ts:17