amankaushik481

Trial Banner

Component

About

A tinted strip banner that shows how many days are left in a free trial, a short note on what stays unlocked, and an upgrade button for SaaS billing nudges.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Trial Banner to your project and fits it to your theme.

Code

How Trial Banner is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { TrialBanner } from "@/components/ui/trial-banner";

export default function TrialBannerDemo() {
  return (
    <div className="w-full max-w-xl">
      <TrialBanner
        daysLeft={5}
        plan="Scale"
        description="Invoice automations and the cash-flow forecast stay unlocked until then."
        actionLabel="Upgrade"
        onUpgrade={() => console.log("upgrade clicked")}
      />
    </div>
  );
}

More by amankaushik481

View all
  • Chip Filter

    Chip Filter

    7
  • Icon Button

    Icon Button

    5
  • Background Boxes

    Background Boxes

    4
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2
  • Typing Text

    Typing Text

    1
  • Treemap Chart

    Treemap Chart

    1
  • Particles

    Particles

    1