BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/better-auth-ui/new-device-email

New Device Email

better-auth-ui/new-device-email
FreeComponent

Email template component that notifies users when a new device signs in to their account.

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/new-device-email.json

Source

../../packages/react/src/components/auth/email/new-device.tsxbetter-auth-ui.com/r/new-device-email.json · first 6 KB
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 Text
17} from "react-email"
18
19import { cn } from "../../../lib/utils"
20import {
21 type EmailClassNames,
22 type EmailColors,
23 EmailStyles
24} from "./email-styles"
25
26/**
27 * Device information displayed in the new device email notification.
28 */
29export interface DeviceInfo {
30 /** Browser name and version */
31 browser?: string
32 /** Operating system name and version */
33 os?: string
34 /** Geographic location of the sign-in */
35 location?: string
36 /** IP address of the device */
37 ipAddress?: string
38 /** Timestamp of the sign-in event */
39 timestamp?: string
40}
41
42const newDeviceEmailLocalization = {
43 NEW_SIGN_IN_DETECTED: "New sign-in detected",
44 LOGO: "Logo",
45 NEW_SIGN_IN_TO_YOUR_ACCOUNT:
46 "We detected a new sign-in to your {appName} account {userEmail} from a device we don't recognize.",
47 DEVICE_DETAILS: "Device details",
48 BROWSER: "Browser",
49 OPERATING_SYSTEM: "Operating System",
50 LOCATION: "Location",
51 IP_ADDRESS: "IP Address",
52 TIME: "Time",
53 IF_THIS_WAS_YOU:
54 "If this was you, you can safely ignore this email. If you don't recognize this activity, please secure your account immediately.",
55 SECURE_MY_ACCOUNT: "Secure my account",
56 EMAIL_SENT_BY: "Email sent by {appName}.",
57 IF_YOU_DIDNT_SIGN_IN:
58 "If you didn't sign in, please contact support immediately {supportEmail} to secure your account.",
59 POWERED_BY_BETTER_AUTH: "Powered by {betterAuth}"
60}
61
62/**
63 * Localization strings for the NewDeviceEmail component.
64 *
65 * Contains all text content used in the new device detection email template.
66 */
67export type NewDeviceEmailLocalization = typeof newDeviceEmailLocalization
68
69/**
70 * Props for the NewDeviceEmail component.
71 */
72export interface NewDeviceEmailProps {
73 /** Email address of the user account */
74 userEmail?: string
75 /** Information about the device that signed in */
76 deviceInfo?: DeviceInfo
77 /** URL to secure the account if unauthorized access is suspected */
78 secureAccountLink?: string
79 /** Name of the application sending the email */
80 appName?: string
81 /** Support email address for security concerns */
82 supportEmail?: string
83 /** Logo URL(s) - a single string or light/dark variants. If omitted, no logo is shown. */
84 logoURL?: string | { light: string; dark: string }
85 /** Custom CSS class names for styling specific parts of the email */
86// … truncated

What it pulls in

npm packages

  • @better-auth-ui/react@latest
  • @better-auth-ui/core@latest
  • react-email

Files it writes

  • ../../packages/react/src/components/auth/email/new-device.tsx
  • ../../packages/react/src/components/auth/email/email-styles.tsx

Facts

Registry
better-auth-ui
Type
registry:component
Access
Free
Files written
2
Licence
MIT
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

Docs on better-auth-ui better-auth-ui.com better-auth-ui/better-auth-ui on GitHub Raw registry item This item as JSON

More from better-auth-ui

All 49 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Account Settingsaccount-settingsbetter-auth-uiComponentsFree2 deps
Active Sessionsactive-sessionsbetter-auth-uiComponentsFree5 deps · 2 files
Additional Fieldadditional-fieldbetter-auth-uiComponentsFree5 deps
Adminadminbetter-auth-uiComponentsFree4 deps · 3 files
Anonymousanonymousbetter-auth-uiComponentsFree4 deps · 3 files
API Keyapi-keybetter-auth-uiComponentsFree4 deps · 10 files
Authauthbetter-auth-uiComponentsFree2 deps
Auth Providerauth-providerbetter-auth-uiComponentsFree4 deps · 2 files

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex