Skip to content

## Text ​

A JSX email component which renders a paragraph element

## Install ​

Install the component from your command line

pnpmbunnpmyarn
console

    pnpm add jsx-email

    pnpm add jsx-email

console

    bun add jsx-email

    bun add jsx-email

console

    npm add jsx-email

    npm add jsx-email

console

    yarn add jsx-email

    yarn add jsx-email

## Usage ​

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

jsx

    import { Text } from 'jsx-email';

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

    import { Text } from 'jsx-email';

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

## Component Props ​

ts

    disableDefaultStyle?: boolean;

    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.

TIP

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