Organization Invitation Email
better-auth-ui/organization-invitation-emailFreeComponent
Email template component that invites a user to join an organization.
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/organization-invitation-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 organizationInvitationEmailLocalization = {27 YOU_RE_INVITED_TO_ORGANIZATION: "You're invited to {organizationName}",28 YOU_RE_INVITED: "You're invited",29 LOGO: "Logo",30 ORGANIZATION_LOGO: "Organization logo",31 INVITED_TO_JOIN_ORGANIZATION:32 "{inviterName} ({inviterEmail}) has invited you to join {organizationName} on {appName} as a {role}.",33 ACCEPT_INVITATION: "Accept invitation",34 VIEW_INVITATION: "View invitation",35 OR_COPY_AND_PASTE_URL: "Or copy and paste this URL into your browser:",36 THIS_INVITATION_EXPIRES_IN_HOURS:37 "This invitation expires in {expirationHours} hours.",38 EMAIL_SENT_BY: "Email sent by {appName}.",39 IF_YOU_DIDNT_EXPECT_THIS_INVITATION:40 "If you didn't expect this invitation, you can safely ignore this email.",41 POWERED_BY_BETTER_AUTH: "Powered by {betterAuth}"42}4344/**45 * Localization strings for the OrganizationInvitationEmail component.46 *47 * Contains all text content used in the organization invitation email template.48 */49export type OrganizationInvitationEmailLocalization =50 typeof organizationInvitationEmailLocalization5152/**53 * Props for the OrganizationInvitationEmail component.54 */55export interface OrganizationInvitationEmailProps {56 /**57 * URL where the invitee can review and accept the invitation.58 *59 * @remarks Pass `{baseUrl}/settings/organizations` — this is where pending60 * organization invitations are listed in the settings UI.61 */62 url: string63 /** Email address of the user being invited */64 email?: string65 /** Name of the person who sent the invitation */66 inviterName?: string67 /** Email address of the person who sent the invitation */68 inviterEmail?: string69 /** Name of the organization the user is being invited to */70 organizationName?: string71 /** Organization logo URL(s) - a single string or light/dark variants. */72 organizationLogoURL?: string | { light: string; dark: string }73 /** Role being offered to the invitee (e.g. "member", "admin", "owner") */74 role?: string75 /** Name of the application sending the email */76 appName?: string77 /** Number of hours until the invitation expires */78 expirationHours?: number79// … 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 |
