Change Email Confirmation Email
better-auth-ui/change-email-confirmation-emailFreeComponent
Email template component for approving an email address change from the current address.
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/change-email-confirmation-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 changeEmailConfirmationEmailLocalization = {27 CONFIRM_EMAIL_CHANGE: "Confirm your email change",28 LOGO: "Logo",29 EMAIL_CHANGE_REQUESTED:30 "Someone requested to change the email address for your {appName} account.",31 CURRENT_EMAIL: "Current email:",32 NEW_EMAIL: "New email:",33 APPROVE_EMAIL_CHANGE: "Approve email change",34 OR_COPY_AND_PASTE_URL: "Or copy and paste this URL into your browser:",35 THIS_LINK_EXPIRES_IN_MINUTES:36 "This link expires in {expirationMinutes} minutes.",37 EMAIL_SENT_BY: "Email sent by {appName}.",38 IF_YOU_DIDNT_REQUEST_EMAIL_CHANGE:39 "If you didn't request this change, you can safely ignore this email. Your email address will stay the same.",40 POWERED_BY_BETTER_AUTH: "Powered by {betterAuth}"41}4243/**44 * Localization strings for the ChangeEmailConfirmationEmail component.45 */46export type ChangeEmailConfirmationEmailLocalization =47 typeof changeEmailConfirmationEmailLocalization4849/**50 * Props for the ChangeEmailConfirmationEmail component.51 */52export interface ChangeEmailConfirmationEmailProps {53 /** Confirmation URL sent by Better Auth to the user's current email address */54 url: string55 /** User's current email address */56 currentEmail?: string57 /** Requested new email address */58 newEmail?: string59 /** Name of the application sending the email */60 appName?: string61 /** Number of minutes until the confirmation link expires */62 expirationMinutes?: number63 /** Logo URL(s) - a single string or light/dark variants. If omitted, no logo is shown. */64 logoURL?: string | { light: string; dark: string }65 /** Custom CSS class names for styling specific parts of the email */66 classNames?: EmailClassNames67 /** Custom color scheme for light and dark modes */68 colors?: EmailColors69 /** Whether to show the "Powered by better-auth" footer */70 poweredBy?: boolean71 /** Whether to enable dark mode support */72 darkMode?: boolean73 /** Additional React nodes to inject into the email head */74 head?: ReactNode75 /**76 * Localization overrides for customizing email text77 * @remarks `ChangeEmailConfirmationEmailLocalization`78 */79// … 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 |
