Skip to content

Button

Base button primitive with variants, sizes, and states.

Variants

Sizes

States

Features

  • 5 variants — primary, secondary, ghost, success, danger
  • 3 sizes — sm, md, lg
  • Loading state — Spinner with preserved width
  • Full width — Expand to container
  • Accessible — Focus visible, aria attributes

Usage

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

<template>
  <FkButton variant="primary" size="md" @click="handleClick">
    Click me
  </FkButton>
</template>

Props

PropTypeDefaultDescription
variantstring'primary'Visual style
size'sm' | 'md' | 'lg''md'Button size
disabledbooleanfalseDisabled state
loadingbooleanfalseLoading state
fullWidthbooleanfalseFull container width
typestring'button'HTML button type

Variants

  • primary — Gold/amber, main actions
  • secondary — Gray, secondary actions
  • ghost — Transparent, tertiary actions
  • success — Green, positive actions
  • danger — Red, destructive actions

Built for iGaming with Vue 3