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