Component libraryCancellation flow
Cancellation flow
ProGuide a consumer-owned keep, pause, or cancellation choice through reason, consequence, retained-access review, and native confirmation.
npx shadcn@latest add @tidal-pro/subscription-cancelInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/subscription-cancel.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Requires a title, subscription label, valid supplied civil retained-access date, unique nonblank reason/choice IDs, a controlled reason/choice/note/confirmation/step value, and controlled change callbacks. Choice descriptions and consequences are consumer-owned; retainedAccessApplies=false omits the date from both review and final FormData for keep-current outcomes. The confirm step serializes reasonId, note, choiceId, conditional retainedAccessDate and required confirmed=yes in a native form. Native action/method and submitter overrides remain available; consumer form handlers run first, prevention stops higher callbacks, direct submission outside the confirm step or while disabled/pending/invalid is prevented, and onConfirm is optional so native submission can remain primary. Controls own value/default/form/name/type channels, strip unsafe legacy markup, preserve external confirmation descriptions, support native disabled and aria-disabled true/false, and expose direct refs with React 19 cleanup. Synchronously accepted step/complete changes use bounded source-owned focus recovery without stealing unrelated focus. Invalid IDs, dates or controlled selections fail visibly. Error, pending, completion, numeric ReactNode content, h2-h5 hierarchy, RTL, 180/320/390 widths, 44px actions, 16px narrow notes, reduced motion and forced colors are supported. Consumers own authentication, authorization, billing, scheduling, persistence and every subscription outcome; the component changes no plan and sends no request.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.