Promotion

PromoBanner

Promotional banner with countdown timer, discount display, and CTA.

PromoBanner

A hero-style promotional banner with optional background image, countdown timer, discount percentage, description, and call-to-action button.

Preview
30% OFF

Summer Sale

00d
00h
00m
00s

Usage

<CPromoBanner
  title="Summer Sale"
  :discount="30"
  description="Up to 30% off on all summer items"
  cta-label="Shop Now"
  cta-to="/collections/summer"
  :end-date="new Date('2024-08-31')"
/>

Minimal

<CPromoBanner title="Free Shipping" description="On orders over SAR 100" />

With Background Image

<CPromoBanner
  title="New Collection"
  :background-image="'/images/hero-banner.jpg'"
  cta-label="Explore"
  cta-to="/new"
/>

Without Countdown

<CPromoBanner
  title="Flash Deal"
  :discount="50"
  :show-countdown="false"
/>

Props

PropTypeDefaultDescription
titlestringrequiredBanner title
descriptionstring—Description text
discountnumber—Discount percentage (e.g., 30)
endDateDate | string—Countdown target date
showCountdownbooleantrueShow countdown timer
ctaLabelstring—Button label
ctaTostring—Button link
backgroundImagestring—Background image URL
variant'solid' | 'gradient' | 'image''gradient'Visual style
uiPartial<{...}>—Per-instance theme overrides

Events

EventPayloadDescription
click—CTA button clicked
expired—Countdown reached zero

Slots

SlotScoped PropsDescription
title{ title }Custom title rendering
countdown{ days, hours, minutes, seconds }Custom countdown display
discount{ percent }Custom discount display
actions—Custom action buttons