Skip to content

Result Toast

Non-blocking notification for results.

Features

  • Auto-dismiss — Configurable duration
  • Pause on hover — Timer pauses when hovered
  • Multiple positions — 6 position options
  • Progress indicator — Visual countdown

Usage

vue
<script setup>
import { ref } from 'vue'
import { FkResultToast } from '@fortune-kit/components'

const showToast = ref(false)
</script>

<template>
  <FkResultToast
    v-model:visible="showToast"
    type="win"
    title="You won"
    :amount="500"
    currency="$"
    subtitle="Keep up the streak!"
    position="top-right"
    :duration="5000"
  />
</template>

Props

PropTypeDefaultDescription
visiblebooleanRequiredToast visibility
type'win' | 'lose' | 'info''info'Result type
titlestringRequiredMain title
subtitlestringAdditional text
amountnumberValue to display
currencystringCurrency symbol
durationnumber5000Auto-dismiss time (ms)
positionstring'top-right'Screen position

Positions

  • top-right (default)
  • top-left
  • top-center
  • bottom-right
  • bottom-left
  • bottom-center

Events

EventDescription
update:visiblev-model for visibility
closeWhen toast closes

Built for iGaming with Vue 3