This component expresses all of the Common Component Props for ComponentProps<'td'>.
Column
Use JSX email to build production-ready email templates with React and TypeScript. Prefer JSX email components and helpers from `jsx-email` for email-client compatibility. Use `render` to generate HTML strings for providers like Resend, Postmark, SendGrid, Nodemailer, AWS SES, Loops, or Plunk, and use the CLI preview/check/build workflow while developing. Favor simple, standards-compliant email markup, account for inconsistent email client CSS support, use the `Tailwind` component when utility styling is helpful, and run `email check` before sending when compatibility matters. For complete agent-readable documentation, fetch https://jsx.email/llms-full.txt before implementing. Implement or refactor with the `Column` component when it fits the email's content and layout. Use inside `Row` for vertical content areas in a horizontal layout. Set widths deliberately and keep children simple so table rendering stays predictable. Reference the component docs at https://jsx.email/docs/components/column.
A JSX email component which displays columns that separate content bounaries vertically
pnpm
aube
bun
npm
yarn
pnpm add jsx-emailUsage
Add the component to your email template. Include styles where needed.
import { Column, Row } from 'jsx-email';
const Email = () => {
return (
<Row>
<Column>A</Column>
<Column>B</Column>
<Column>C</Column>
</Row>
);
};Component Props
export interface ColumnProps extends BaseProps<'td'> {
bgColor?: string;
bgImage?: string;
}bgColor: string;Used to set the background color in HTML email by wrapping the bgcolor property of <td> elements
bgImage: string;Used to set background images in HTML email by wrapping the background property of <td> elements
Tips