Column
A JSX email component which displays columns that separate content boundaries vertically
Install
Install the component from your command line
pnpm add jsx-email
bun add jsx-email
npm add jsx-email
yarn add jsx-email
Usage
import { Column, Row } from 'jsx-email';
const Email = () => { return ( <Row> <Column>A</Column> <Column>B</Column> <Column>C</Column> </Row> );};
Props
TypeScript Interface
export interface ColumnProps extends BaseProps<'td'> { bgColor?: string; bgImage?: string;}
Optional Props
bgColor
bgColor?: string;
Sets the background color using HTML email’s bgcolor
property.
bgImage
bgImage?: string;
Sets the background image using HTML email’s background
property.
Additional Props
This component expresses all of the Common Component Props for ComponentProps<'td'>
.