Text

A JSX email component which renders a paragraph element

pnpm
aube
bun
npm
yarn
pnpm add jsx-email

Usage

Add the component to your email template. Include styles where needed.

import { Text } from 'jsx-email';

const Email = () => {
  return <Text>Lorem ipsum</Text>;
};

Component Props

disableDefaultStyle?: boolean;

If true, instructs the component not to add default style properties to the component. This can be useful when attempting to override default styles with Tailwind or class names.

Tips

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