Column
A JSX email component which displays columns that separate content boundaries vertically
Install
Install the component from your command line
pnpm add jsx-emailbun add jsx-emailnpm add jsx-emailyarn add jsx-emailUsage
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'>.