mirror of
https://github.com/resend/react-email.git
synced 2026-09-14 14:18:02 +08:00
44 lines
637 B
Plaintext
44 lines
637 B
Plaintext
---
|
|
title: "Hr"
|
|
sidebarTitle: "Hr"
|
|
description: "Display a divider that separates content areas in your email."
|
|
"og:image": "https://react.email/static/covers/hr.png"
|
|
icon: "horizontal-rule"
|
|
---
|
|
|
|
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 { Hr } from "react-email";
|
|
|
|
const Email = () => {
|
|
return <Hr />;
|
|
};
|
|
```
|
|
|
|
<Support/>
|