@emailux/html
v1.0.1
Published
A React email html component to wrap emails (EmailUX Mailer)
Maintainers
Readme
@emailux/html
HTML root wrapper for your email documents.
Installation
# pnpm
pnpm add @emailux/html
# npm
npm install @emailux/html
# yarn
yarn add @emailux/htmlQuick start
import { Html } from "@emailux/html";
export default function Email() {
return <Html>Hello</Html>;
}Props
| Name | Type | Required | Default | Description | | -------- | ---------------------- | -------- | ------- | ----------------------------------- | | children | any | Yes | — | Content of the email document | | dir | "ltr" | "rtl" | No | "ltr" | Text direction for the document, it will affect all components | | lang | string | No | "en" | Language of the document | | defaultSpacing | string one value in css | No | "20px" | This will set the whole email default spacing (padding bottom defaults) |
All other standard HTML attributes for the <html> element are supported.
License
MIT © iClasser
