---
title: "Subscription change"
description: "A plan that started, changed, is about to renew or was cancelled."
plan: Pro
docs: https://ui.edbn.me/docs/emails/subscription-change
example: started
---

# Subscription change

A plan that started, changed, is about to renew or was cancelled.

## Installation

This is a Pro item. Once per project, create a token at https://ui.edbn.me/dashboard/tokens, put it in `.env.local` as `EDBN_TOKEN`, and add the registry to `components.json`:

```json
{
  "registries": {
    "@edbn": {
      "url": "https://ui.edbn.me/r/{name}.json",
      "headers": { "Authorization": "Bearer ${EDBN_TOKEN}" }
    }
  }
}
```

Then install:

```bash
npx shadcn@4.19.0 add @edbn/email-subscription-change
```

## Dependencies
- edbn: email-facts, email-footer, email-layout, email-shared, email-typography

## Render and send

Render it on the server with its typed props, then pass the result to any email provider. [Sending emails](https://ui.edbn.me/docs/emails/emails-sending.md) has Resend, Postmark and SMTP examples and the dark mode options.

```ts send.ts
import SubscriptionChange from "@/emails/subscription-change";
import { renderEmail } from "@/emails/_shared/render";

// props: the SubscriptionChangeProps type and the samples in examples show every field.
const { subject, html, text } = await renderEmail(SubscriptionChange, props);
await resend.emails.send({ from, to, subject, html, text });
```

## Subjects
- Started: "Your Kilnwork Studio plan is active", previewed as "Studio, $49.00 a month. Here are the details."
- Changed: "Your Kilnwork plan changed to Studio", previewed as "You moved from Starter to Studio."
- Renewing: "Your Kilnwork plan renews on Dec 15", previewed as "$49.00 a month, charged to the Visa ending 4242."
- Cancelled: "Your Kilnwork subscription is cancelled", previewed as "You can keep using Studio until December 15, 2026."

## Usage: Started

The example code is part of Pro (https://ui.edbn.me/pricing). With the user's token, the edbn MCP server's `get_example` tool returns it: https://ui.edbn.me/mcp

## Examples
- [Started](https://ui.edbn.me/docs/emails/subscription-change/started) (Markdown: https://ui.edbn.me/docs/emails/subscription-change.md?demo=started)
- [Changed](https://ui.edbn.me/docs/emails/subscription-change/changed) (Markdown: https://ui.edbn.me/docs/emails/subscription-change.md?demo=changed)
- [Renewing](https://ui.edbn.me/docs/emails/subscription-change/renewing) (Markdown: https://ui.edbn.me/docs/emails/subscription-change.md?demo=renewing)
- [Cancelled](https://ui.edbn.me/docs/emails/subscription-change/cancelled) (Markdown: https://ui.edbn.me/docs/emails/subscription-change.md?demo=cancelled)

## Files
- emails/subscription-change.tsx (222 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
