mirror of
https://github.com/resend/react-email.git
synced 2026-09-14 14:18:02 +08:00
56 lines
846 B
Plaintext
56 lines
846 B
Plaintext
---
|
|
title: "Row"
|
|
sidebarTitle: "Row"
|
|
description: "Display a row that separates content areas horizontally in your email."
|
|
"og:image": "https://react.email/static/covers/row.png"
|
|
icon: "table-rows"
|
|
---
|
|
|
|
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 { Row, Column, Section } from "react-email";
|
|
|
|
const Email = () => {
|
|
return (
|
|
<Section>
|
|
<Row>
|
|
<Column>A</Column>
|
|
</Row>
|
|
<Row>
|
|
<Column>B</Column>
|
|
</Row>
|
|
<Row>
|
|
<Column>C</Column>
|
|
</Row>
|
|
</Section>
|
|
);
|
|
};
|
|
```
|
|
|
|
<Support/>
|