Command Palette

Search for a command to run...

Docs
Banner Promo

Banner Promo

A promotional banner with badge, title, and call-to-action button.

Installation

Usage

import BannerPromo from "@/components/ruixen/banner-promo";
 
export default function MyPromoBanner() {
  return (
    <BannerPromo
      variant="festive"
      badge="Limited Time"
      title="Get 30% off"
      description="on all annual plans. Use code: SAVE30"
      ctaLabel="Claim offer"
      ctaHref="/pricing"
    />
  );
}

Props

PropTypeDefaultDescription
badgestring-Badge text above the title
titlestring-Main promotional title
descriptionstring-Supporting description text
ctaLabelstring"Shop now"Call-to-action button text
ctaHrefstring"#"Call-to-action link URL
variant"default" | "festive" | "minimal" | "gradient""default"Visual style of the banner
dismissiblebooleantrueWhether banner can be dismissed
onDismiss() => void-Callback when dismissed
onCtaClick() => void-Callback when CTA clicked
classNamestring-Additional CSS classes

Variants

VariantDescription
defaultPrimary background color
festiveRed to rose gradient for sales
minimalSecondary background with border
gradientEmerald to cyan gradient for offers