amankaushik481

Cancel Flow

Component

About

A two-step subscription cancellation card that asks the user for a reason via radio buttons, then shows a confirm-or-back step before cancelling.

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

Code

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

Usage.tsx

import { CancelFlow } from "@/components/ui/cancel-flow";

export default function CancelFlowDemo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-bg p-8">
      <CancelFlow
        planName="Scale"
        onConfirm={(reason) => console.log("cancel reason:", reason)}
      />
    </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