diff --git a/apps/docs/components/code-block.mdx b/apps/docs/components/code-block.mdx index bd560f0da6..61c43987fd 100644 --- a/apps/docs/components/code-block.mdx +++ b/apps/docs/components/code-block.mdx @@ -6,6 +6,7 @@ icon: 'file-lines' --- import Support from '/snippets/support.mdx' +import { ComponentPreview } from '/snippets/component-preview.mdx' ## Install @@ -43,8 +44,31 @@ pnpm add @react-email/code-block -E Add the component into your email component as follows. + ```jsx -import { CodeBlock, dracula } from '@react-email/code-block'; +import { CodeBlock, dracula } from "@react-email/components"; const Email = () => { const code = `export default async (req, res) => { @@ -66,6 +90,7 @@ const Email = () => { />); }; ``` + This should render a code-block with the desired theme.