Components
<OtpEmail />
Email template component that sends one-time password (OTP) verification codes to users.
Usage
import { OtpEmail } from "@better-auth-ui/heroui/email"
import { render } from "@react-email/render"
const html = await render(
<OtpEmail
verificationCode="123456"
email="[email protected]"
appName="Better Auth UI"
logoURL={{
light: "/favicon-96x96.png",
dark: "/favicon-96x96-inverted.png"
}}
expirationMinutes={10}
darkMode={true}
poweredBy={true}
/>
)Props
Prop
Type
Features
- Large, prominently displayed verification code
- Expiration time information
- Security notice for unauthorized requests
- Customizable branding and styling
- Support for light/dark mode themes
- Localization support
Last updated on