1. Install dependencies
Install the EmailUX Email package locally and a few components.2. Usage
Props
All other standard HTML attributes for the
<html> element are supported.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create Html wrapper tag
# pnpm
pnpm add @emailux/components
# npm
npm install @emailux/components
# yarn
yarn add @emailux/components
import { Html } from "@emailux/components";
export default function Email() {
return <Html>Hello</Html>;
}
| 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) |
<html> element are supported.