# React Email Components Reference Complete reference for all React Email components. All examples use the Tailwind component for styling. **Important:** Only import the components you need. Do not use components in the code if you are not importing them. ## Available Components All components are imported from `react-email`: - **Body** - A React component to wrap emails - **Button** - A link that is styled to look like a button - **CodeBlock** - Display code with a selected theme and regex highlighting using Prism.js - **CodeInline** - Display a predictable inline code HTML element that works on all email clients - **Column** - Display a column that separates content areas vertically in your email (must be used with Row) - **Container** - A layout component that centers your content horizontally on a breaking point - **Font** - A React Font component to set your fonts - **Head** - Contains head components, related to the document such as style and meta elements - **Heading** - A block of heading text - **Hr** - Display a divider that separates content areas in your email - **Html** - A React html component to wrap emails - **Img** - Display an image in your email - **Link** - A hyperlink to web pages, email addresses, or anything else a URL can address - **Markdown** - A Markdown component that converts markdown to valid react-email template code - **Preview** - A preview text that will be displayed in the inbox of the recipient - **Row** - Display a row that separates content areas horizontally in your email - **Section** - Display a section that can also be formatted using rows and columns - **Tailwind** - A React component to wrap emails with Tailwind CSS - **Text** - A block of text separated by blank spaces ## Tailwind The recommended way to style React Email components. Wrap your email content and use utility classes. ```tsx import { Tailwind, pixelBasedPreset, Html, Body, Container, Heading, Text, Button } from 'react-email'; export default function Email() { return ( Welcome! Your content here. ); } ``` **Props:** - `config` - Tailwind configuration object **How it works:** - Tailwind classes are converted to inline styles automatically - Media queries are extracted to `