Skip to content

Text

A JSX email component which renders a paragraph element

Install

Install the component from your command line

Terminal window
pnpm add jsx-email

Usage

TextExample.jsx
import { Text } from 'jsx-email';
const Email = () => {
return <Text>Lorem ipsum</Text>;
};

Props

Optional Props

disableDefaultStyle

disableDefaultStyle?: boolean;

When true, removes default styles. Useful when using Tailwind or custom classes.

Additional Props

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