Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.emailux.com/llms.txt

Use this file to discover all available pages before exploring further.

1. Install dependencies

Install the EmailUX Email package locally and a few components.
# pnpm
pnpm add @emailux/components

# npm
npm install @emailux/components

# yarn
yarn add @emailux/components

2. Usage

import { Html } from "@emailux/components";

export default function Email() {
  return <Html>Hello</Html>;
}

Props

NameTypeRequiredDefaultDescription
childrenanyYesContent of the email document
dir”ltr” | “rtl”No”ltr”Text direction for the document, it will affect all components
langstringNo”en”Language of the document
defaultSpacingstring one value in cssNo”20px”This will set the whole email default spacing (padding bottom defaults)
All other standard HTML attributes for the <html> element are supported.