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 { Head } from " @emailux/components";

export default function EmailTemplate() {
  return <Head>
    <title>Some title</title>
  </Head>;
}

Props

NameTypeRequiredDefaultDescription
childrenReact.ReactNodeYesContent of the email document
titleReact.ReactNodeNoTitle
defaultCssstringNoPre-written CSS for emailYou can replace this with your own css
All other standard Head attributes for the <head> element are supported.