Skip to content

The Open Standard for Generative UI

637 B
Raw Blame
"use client";

import { defineComponent } from "@openuidev/react-lang";
import { Text } from "@react-email/components";
import { z } from "zod/v4";

export const EmailText = defineComponent({
  name: "EmailText",
  props: z.object({
    text: z.string(),
  }),
  description: "Email text paragraph for body content.",
  component: ({ props }) => (
    <Text
      style={{
        color: "#374151",
        fontSize: "16px",
        lineHeight: "24px",
        margin: "0 0 16px 0",
        fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",
      }}
    >
      {props.text as string}
    </Text>
  ),
});