Delete Account Verification Email
better-auth-ui/delete-account-verification-emailFreeComponent
Email template component for verifying a permanent account deletion request.
Live preview
live · rendered by the registry
Rendered by better-auth-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://better-auth-ui.com/r/delete-account-verification-email.jsonSource
1import type { ReactNode } from "react"2import {3 Body,4 Button,5 Container,6 Head,7 Heading,8 Hr,9 Html,10 Img,11 Link,12 Preview,13 pixelBasedPreset,14 Section,15 Tailwind,16 Text17} from "react-email"1819import { cn } from "../../../lib/utils"20import {21 type EmailClassNames,22 type EmailColors,23 EmailStyles24} from "./email-styles"2526const deleteAccountVerificationEmailLocalization = {27 ACCOUNT_DELETION_REQUESTED: "Account deletion requested",28 CONFIRM_ACCOUNT_DELETION: "Confirm account deletion",29 LOGO: "Logo",30 WE_RECEIVED_ACCOUNT_DELETION_REQUEST:31 "We received a request to permanently delete your {appName} account.",32 ACCOUNT: "Account:",33 DELETION_IS_PERMANENT:34 "Deleting your account removes its data permanently. This action cannot be undone.",35 DELETE_MY_ACCOUNT: "Delete my account",36 OR_COPY_AND_PASTE_URL: "Or copy and paste this URL into your browser:",37 THIS_LINK_EXPIRES_IN_HOURS: "This link expires in {expirationHours} hours.",38 EMAIL_SENT_BY: "Email sent by {appName}.",39 IF_YOU_DIDNT_REQUEST_ACCOUNT_DELETION:40 "If you didn't request account deletion, you can safely ignore this email. Your account will remain active.",41 POWERED_BY_BETTER_AUTH: "Powered by {betterAuth}"42}4344/**45 * Localization strings for the DeleteAccountVerificationEmail component.46 */47export type DeleteAccountVerificationEmailLocalization =48 typeof deleteAccountVerificationEmailLocalization4950/**51 * Props for the DeleteAccountVerificationEmail component.52 */53export interface DeleteAccountVerificationEmailProps {54 /** Account deletion verification URL sent by Better Auth */55 url: string56 /** Email address of the account scheduled for deletion */57 email?: string58 /** Name of the application sending the email */59 appName?: string60 /** Number of hours until the verification link expires */61 expirationHours?: number62 /** Logo URL(s) - a single string or light/dark variants. If omitted, no logo is shown. */63 logoURL?: string | { light: string; dark: string }64 /** Custom CSS class names for styling specific parts of the email */65 classNames?: EmailClassNames66 /** Custom color scheme for light and dark modes */67 colors?: EmailColors68 /** Whether to show the "Powered by better-auth" footer */69 poweredBy?: boolean70 /** Whether to enable dark mode support */71 darkMode?: boolean72 /** Additional React nodes to inject into the email head */73 head?: ReactNode74 /**75 * Localization overrides for customizing email text76// … truncated
What it pulls in
npm packages
Files it writes
More from better-auth-ui
All 49 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Account Settingsaccount-settings | better-auth-ui | Components | Free | 2 deps | |
| Active Sessionsactive-sessions | better-auth-ui | Components | Free | 5 deps · 2 files | |
| Additional Fieldadditional-field | better-auth-ui | Components | Free | 5 deps | |
| Adminadmin | better-auth-ui | Components | Free | 4 deps · 3 files | |
| Anonymousanonymous | better-auth-ui | Components | Free | 4 deps · 3 files | |
| API Keyapi-key | better-auth-ui | Components | Free | 4 deps · 10 files | |
| Authauth | better-auth-ui | Components | Free | 2 deps | |
| Auth Providerauth-provider | better-auth-ui | Components | Free | 4 deps · 2 files |
