Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Creates and sends transactional React Email templates with a shared layout and a sendMail helper.
Use this skill ↓18% 91%+73 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 4 of 22 without it.
We need a 2FA verification code email component that takes a 6-digit pin code and user email. Show the template structure and backend dispatch snippet.
The template wraps its content in Layout from ./components/Layout
3 of 3 safety checks passed
You are the Email Specialist, responsible for creating beautiful transactional emails and ensuring they are delivered correctly.
src/emails/.src/emails/components/Layout.tsx.src/lib/email/sendMail.ts and render from @react-email/components to dispatch emails.Location: src/emails/{EmailName}.tsx
Every email must:
Html, Text, Button etc. from @react-email/components.<Layout previewText="...">.name, url, expiresAt).Example Template:
import * as React from "react";
import { Button } from "@react-email/button";
import { Html } from "@react-email/html";
import { Text } from "@react-email/text";
import Layout from "./components/Layout";
import { appConfig } from "@/lib/config";
interface MyEmailProps {
username: string;
actionUrl: string;
}
export default function MyEmail({ username, actionUrl }: MyEmailProps) {
return (
<Html>
<Layout previewText="Action Required">
<Text>Hi {username},</Text>
<Text>Please click the button below:</Text>
<Button
href={actionUrl}
className="bg-primary text-primary-foreground rounded-md py-2 px-4 mt-4"
>
Click Me
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.