mirror of
https://github.com/resend/react-email.git
synced 2026-09-14 14:18:02 +08:00
50 lines
821 B
Plaintext
50 lines
821 B
Plaintext
---
|
|
title: "Column"
|
|
sidebarTitle: "Column"
|
|
description: "Display a column that separates content areas vertically in your email. A column needs to be used in combination with a Row component."
|
|
"og:image": "https://react.email/static/covers/column.png"
|
|
icon: "columns-3"
|
|
---
|
|
|
|
import Support from '/snippets/support.mdx'
|
|
|
|
## Install
|
|
|
|
Install component from your command line.
|
|
|
|
<CodeGroup>
|
|
|
|
```sh npm
|
|
npm install react-email -E
|
|
```
|
|
|
|
```sh yarn
|
|
yarn add react-email -E
|
|
```
|
|
|
|
```sh pnpm
|
|
pnpm add react-email -E
|
|
```
|
|
|
|
</CodeGroup>
|
|
|
|
## Getting started
|
|
|
|
Add the component to your email template. Include styles where needed.
|
|
|
|
```jsx
|
|
import { Column, Row } from "react-email";
|
|
|
|
const Email = () => {
|
|
return (
|
|
<Row>
|
|
<Column>A</Column>
|
|
<Column>B</Column>
|
|
<Column>C</Column>
|
|
</Row>
|
|
);
|
|
};
|
|
```
|
|
|
|
<Support />
|