Skip to content

PromoBadge Component

Promotional badge component for highlighting special offers, discounts, or announcements. Perfect for hero sections and marketing campaigns.

Overview

The PromoBadge component creates eye-catching promotional badges that can be used to highlight special offers, limited-time deals, or important announcements. It features customizable styling, icons, and animation options.

Preview

Promo Badge Component Preview

Basic Usage

vue
<template>
  <div class="hero-section">
    <PromoBadge 
      value="50% OFF"
      text="Limited Time Offer"
      icon="heroicons:fire"
    />
  </div>
</template>

<script setup lang="ts">
import PromoBadge from '@/components/PromoBadge.vue'
</script>

Features

  • Customizable Content - Value, text, and icon configuration
  • Multiple Variants - Different color schemes and styles
  • Animation Support - Pulse, bounce, and glow effects
  • Responsive Design - Mobile-optimized display
  • Internationalization - i18n support for text content

Component API

Props

PropTypeDefaultDescription
valuestringundefinedPromotional value (e.g., "50% OFF")
textstringundefinedPromotional text
iconstringundefinedIcon name
variant'default' | 'success' | 'warning' | 'error''default'Color variant
animatedbooleantrueEnable animations

Documentation

This component documentation is currently being written. It will include:

  • Complete styling variants
  • Animation options
  • Integration examples
  • Customization guide

Built with love by mhdevfr