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
  • Icon Button

    Icon Button

    14
  • Background Boxes

    Background Boxes

    12
  • Chip Filter

    Chip Filter

    8
  • Typing Text

    Typing Text

    7
  • Treemap Chart

    Treemap Chart

    6
  • File Dropzone

    File Dropzone

    5
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2