Skip to main content

Install

Install component from your command line.
npm install @react-email/components -E

# or get the individual package

npm install @react-email/link -E

Getting started

Add the component to your email template. Include styles where needed.
import { Link } from "@react-email/components";

const Email = () => {
  return <Link href="https://example.com">Example</Link>;
};

Props

href
string
required
Link to be triggered when the button is clicked
target
string
default:"_blank"
Specify the target attribute for the button link

Support

All components were tested using the most popular email clients.
Gmail
Gmail
Apple Mail
Apple Mail
Outlook
Outlook
Yahoo! Mail
Yahoo! Mail
HEY
HEY
Superhuman
Superhuman