Skip to content

Head

A JSX email component which creates an HTML head element

Install

Install the component from your command line

Terminal window
pnpm add jsx-email

Usage

HeadExample.jsx
import { Head } from 'jsx-email';
const Email = () => {
return (
<Head>
<title>My email title</title>
</Head>
);
};

Props

TypeScript Interface

export interface HeadProps extends BaseProps<'head'> {
enableFormatDetection?: boolean;
}

Optional Props

enableFormatDetection

enableFormatDetection?: boolean;

Controls the format-detection meta tag. Defaults to false.

Additional Props

This component expresses all of the Common Component Props for ComponentProps<'head'>.