Leaving a plan in two honest steps: why, then what it means.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add @notchset-pro/cancel-flowpnpm dlx shadcn@latest add @notchset-pro/cancel-flowNeeds your registry key. Every components.json style gets the same files.
Works with React 18.3 or 19 on Tailwind CSS v4, in any shadcn project. What's tested
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { CancelFlow } from "@/components/ui/notchset/blocks/cancel-flow";
import { Button } from "@/components/ui/notchset/button";
const REASONS = ["It costs too much", "I don't use it enough", "Answers weren't good enough", "I'm moving to another tool", "Something else"];
export default function CancelFlowDemo() {
const [open, setOpen] = React.useState(false);
const [ends, setEnds] = React.useState<string | null>(null);
return (
<div className="flex flex-col items-start gap-3">
<p className="m-0 text-[var(--ns-ink-2)]">{ends ? `Plus ends on ${ends}. Your chats stay.` : "Plus · renews 14 Nov · Visa ending 4242"}</p>
{ends ? <Button onClick={() => setEnds(null)}>Resubscribe</Button> : <Button onClick={() => setOpen(true)}>Cancel plan</Button>}
<CancelFlow
open={open}
onOpenChange={setOpen}
plan="Plus"
endsOn="14 Nov"
reasons={REASONS}
keeps={["Every chat, project and document stays.", "Export everything any time."]}
offer={(why) => (why === "It costs too much" ? { title: "Switch to Free instead", detail: "Fast and Balanced, a shorter limit, from 14 Nov. Nothing is lost.", label: "Switch to Free", onPick: () => setEnds("14 Nov") } : null)}
onCancel={() => setEnds("14 Nov")}
/>
</div>
);
}components/ui/notchset/blocks/cancel-flow.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
open–
booleanRequired.
onOpenChange–
(open: boolean) => voidRequired.
plan–
stringthe plan being cancelled, by name
endsOn–
stringthe day it ends, in words ("14 Nov")
reasons–
CancelReason[]why people leave, one tap each: a label, or a value and its label
note–
stringthe label of an optional free-text line under the reasons ("Anything else? (optional)"); none when omitted
ending–
stringwhat happens on the day it ends, when it isn't "You keep {plan} until {endsOn}, then move to the free plan."
keeps–
string[]what stays after it ends, a sentence each
offer–
(reason: string) => { title: string; detail: string; label: string; onPick: () => void | Promise<void> } | nullthe one alternative worth offering for a reason (a smaller plan, a pause); null for none
onCancel–
(reason: string, note?: string) => void | Promise<void>cancels with your billing; throw with the reason in words when it's refused
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v2.0.0 · 2026-10-13
Released with the Notchset system.
The same file, at work in a finished app. Open it live and find it on its pages.
Account lifecycle. An account from its first confirmed email to its last export: verify in place, cancel honestly, delete only after the export, and choose what reaches you.
2 free · 4 ProSee the Account lifecycle kit
Pro is in early access.