1. Install dependencies
Install the EmailUX Email package locally and a few components.2. Usage
Props
All other standard Head attributes for the
<head> 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 Font component
# pnpm
pnpm add @emailux/components
# npm
npm install @emailux/components
# yarn
yarn add @emailux/components
import { Font } from "@emailux/components";
export default function EmailTemplate() {
return <Font
family='Inter'
url='https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhiJ-Ek-_EeAmM.woff2'
type='woff2'
fallback='Arial'
style='normal'
weight='400'
targetSelectors={['body', '.emailux-table']}
/>
}
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| children | React.ReactNode | Yes | — | Content of the email document |
| family | String | Yes | — | - |
| url | String | Yes | — | - |
| type | String | Yes | — | “woff2” or “woff” |
| style | String | Yes | — | - |
| weigth | String | Yes | — | 400 |
| targetSelectors | Array of css selector strings | No | — |
<head> element are supported.