diff --git a/apps/docs/components/column.mdx b/apps/docs/components/column.mdx
index 21c665082a..1c6e702a5f 100644
--- a/apps/docs/components/column.mdx
+++ b/apps/docs/components/column.mdx
@@ -7,6 +7,7 @@ icon: "columns-3"
---
import Support from '/snippets/support.mdx'
+import {ComponentPreview} from '/snippets/component-preview.mdx'
## Install
@@ -44,18 +45,80 @@ pnpm add @react-email/column -E
Add the component to your email template. Include styles where needed.
+
```jsx
import { Column, Row } from "@react-email/components";
const Email = () => {
return (
- A
- B
- C
+
+ A
+
+
+ B
+
+
+ C
+
);
};
```
+
diff --git a/apps/docs/components/heading.mdx b/apps/docs/components/heading.mdx
index 913360ce05..590e01e49a 100644
--- a/apps/docs/components/heading.mdx
+++ b/apps/docs/components/heading.mdx
@@ -7,6 +7,7 @@ icon: "h1"
---
import Support from '/snippets/support.mdx'
+import { ComponentPreview } from '/snippets/component-preview.mdx'
## Install
@@ -44,13 +45,25 @@ pnpm add @react-email/heading -E
Add the component to your email template. Include styles where needed.
+
```jsx
import { Heading } from "@react-email/components";
const Email = () => {
- return Lorem ipsum;
+ return
+ Lorem ipsum
+ ;
};
```
+
## Props
diff --git a/apps/docs/components/hr.mdx b/apps/docs/components/hr.mdx
index e2f9ecd676..6021eb23ac 100644
--- a/apps/docs/components/hr.mdx
+++ b/apps/docs/components/hr.mdx
@@ -7,6 +7,7 @@ icon: "horizontal-rule"
---
import Support from '/snippets/support.mdx'
+import { ComponentPreview } from '/snippets/component-preview.mdx'
## Install
@@ -44,12 +45,28 @@ pnpm add @react-email/hr -E
Add the component to your email template. Include styles where needed.
+
```jsx
-import { Hr } from "@react-email/components";
+import { Hr, Heading, Text, Section } from "@react-email/components";
const Email = () => {
- return
;
+ return ;
};
```
+
diff --git a/apps/docs/components/link.mdx b/apps/docs/components/link.mdx
index a7a59012b0..973f5cda8c 100644
--- a/apps/docs/components/link.mdx
+++ b/apps/docs/components/link.mdx
@@ -6,7 +6,8 @@ description: "A hyperlink to web pages, email addresses, or anything else a URL
icon: "link"
---
-import Support from '/snippets/support.mdx'
+import Support from "/snippets/support.mdx";
+import { ComponentPreview } from "/snippets/component-preview.mdx";
## Install
@@ -44,6 +45,14 @@ pnpm add @react-email/link -E
Add the component to your email template. Include styles where needed.
+
+
```jsx
import { Link } from "@react-email/components";
@@ -52,6 +61,8 @@ const Email = () => {
};
```
+
+
## Props
@@ -62,4 +73,4 @@ const Email = () => {
Specify the target attribute for the button link
-
+
diff --git a/apps/docs/components/markdown.mdx b/apps/docs/components/markdown.mdx
index 3c9730b0b8..dd500d65f3 100644
--- a/apps/docs/components/markdown.mdx
+++ b/apps/docs/components/markdown.mdx
@@ -7,6 +7,7 @@ icon: "file-code"
---
import Support from '/snippets/support.mdx'
+import { ComponentPreview } from '/snippets/component-preview.mdx'
## Install
@@ -44,6 +45,35 @@ pnpm add @react-email/markdown -E
Add the component to your email template. Include styles where needed.
+
```jsx
import { Markdown, Html } from "@react-email/components";
@@ -52,23 +82,28 @@ const Email = () => {
{`# Hello, World!`}
{/* OR */}
-
+
);
};
```
+
## Props
diff --git a/apps/docs/components/row.mdx b/apps/docs/components/row.mdx
index 28743b34b7..d89eb818a6 100644
--- a/apps/docs/components/row.mdx
+++ b/apps/docs/components/row.mdx
@@ -6,7 +6,8 @@ description: "Display a row that separates content areas horizontally in your em
icon: "table-rows"
---
-import Support from '/snippets/support.mdx'
+import Support from "/snippets/support.mdx";
+import { ComponentPreview } from "/snippets/component-preview.mdx";
## Install
@@ -44,24 +45,94 @@ pnpm add @react-email/row -E
Add the component to your email template. Include styles where needed.
+
+
```jsx
import { Row, Column, Section } from "@react-email/components";
const Email = () => {
return (
-
- A
+
+
+ A
+
-
- B
+
+
+ B
+
-
- C
+
+
+ C
+
);
};
```
-
+
+
+
diff --git a/apps/docs/components/section.mdx b/apps/docs/components/section.mdx
index 3d1bf8caed..0541c3906f 100644
--- a/apps/docs/components/section.mdx
+++ b/apps/docs/components/section.mdx
@@ -7,6 +7,7 @@ icon: "rectangles-mixed"
---
import Support from '/snippets/support.mdx'
+import { ComponentPreview } from '/snippets/component-preview.mdx'
## Install
@@ -44,29 +45,58 @@ pnpm add @react-email/section -E
Add the component to your email template. Include styles where needed.
+
```jsx
import { Section, Column, Row, Text } from "@react-email/components";
const Email = () => {
return (
- {/* A simple `section` */}
-
-
- {/* Formatted with `rows` and `columns` */}
-
-
- Column 1, Row 1
- Column 2, Row 1
-
-
- Column 1, Row 2
- Column 2, Row 2
-
-
+ <>
+ {/* A simple `section` */}
+
+
+ {/* Formatted with `rows` and `columns` */}
+
+
+ Column 1, Row 1
+ Column 2, Row 1
+
+
+ Column 1, Row 2
+ Column 2, Row 2
+
+
+ >
);
};
```
+
diff --git a/apps/docs/components/text.mdx b/apps/docs/components/text.mdx
index 73793c6756..3982b8854e 100644
--- a/apps/docs/components/text.mdx
+++ b/apps/docs/components/text.mdx
@@ -7,6 +7,7 @@ icon: "text-size"
---
import Support from '/snippets/support.mdx'
+import { ComponentPreview } from '/snippets/component-preview.mdx'
## Install
@@ -44,12 +45,20 @@ pnpm add @react-email/text -E
Add the component to your email template. Include styles where needed.
+
```jsx
import { Text } from "@react-email/components";
const Email = () => {
- return Lorem ipsum;
+ return Lorem ipsum;
};
```
+