TetraKits UI Top Gradient Banner ← Library

Top Gradient Banner

Full-width top banner with emerald-to-zinc gradient, upgrade copy, and dismiss button. Sitewide promo strip with green glow shadow. Ideal for Pro upsells, maintenance notices, and limited-time offers.

top banner reactgradient announcementdismissible bannerupgrade barfull width notice
Live preview

Dependencies

react lucide-react
npm install lucide-react
import { X } from "lucide-react";

export function TopGradientBanner() {
  return (
    <div className="relative flex items-center justify-center gap-4 bg-gradient-to-r from-emerald-600 via-emerald-500 to-zinc-600 px-4 py-2.5 text-sm text-white shadow-[0_4px_20px_rgba(16,185,129,0.35),0_1px_0_rgba(255,255,255,0.2)_inset]">
      <p className="font-medium">Upgrade to Pro for 2× more CPUs and faster builds</p>
      <button type="button" className="absolute right-3 rounded-md p-1 hover:bg-white/15" aria-label="Dismiss">
        <X className="h-4 w-4" />
      </button>
    </div>
  );
}