HTML
Wraps the email document with a root element
Install
Install the component from your command line
pnpm add jsx-emailbun add jsx-emailnpm add jsx-emailyarn add jsx-emailUsage
import { Body, Head, Html } from 'jsx-email';
const Email = () => { return ( <Html lang="en" dir="ltr"> <Head> <title>Email Title</title> </Head> <Body> Email content </Body> </Html> );};Props
Optional Props
dir
dir?: string;Text direction for email content.
lang
lang?: string;Language identifier for email content.
enableVML
enableVML?: boolean;Controls VML namespace attributes. Defaults to true.
Additional Props
This component expresses all of the Common Component Props for ComponentProps<'html'>.