Skip to content

Result Panel ​

Inline result display for win/lose/info states.

You Won!

$ 1,500

Congratulations on your victory!

Features ​

  • Three states — Win, Lose, Info with semantic colors
  • Compact mode — Reduced padding for dense layouts
  • Action slot — Add buttons or custom actions
  • Accessible — Uses role="status" and aria-live

Usage ​

vue
<script setup>
import { FkResultPanel, FkButton } from '@fortune-kit/components'
</script>

<template>
  <FkResultPanel
    type="win"
    title="You Won!"
    :amount="1500"
    currency="$"
    subtitle="Congratulations on your victory!"
  >
    <template #actions>
      <FkButton variant="success">Claim</FkButton>
    </template>
  </FkResultPanel>
</template>

Props ​

PropTypeDefaultDescription
type'win' | 'lose' | 'info''info'Result type
titlestringRequiredMain title
subtitlestring—Additional text
amountnumber—Value to display
currencystring—Currency symbol
compactbooleanfalseCompact mode

Slots ​

SlotDescription
defaultContent below subtitle
iconCustom icon replacement
actionsAction buttons

When to Use ​

  • FkResultPanel — Inline display within page content
  • FkResultModal — Full-screen overlay for important results
  • FkResultToast — Non-blocking notification

Built for iGaming with Vue 3