@react-email/link
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

React Email link cover

@react-email/link
A hyperlink to web pages, email addresses, or anything else a URL can address.

Install

Install component from your command line.

With yarn

yarn add @react-email/link -E

With npm

npm install @react-email/link -E

Getting started

Add the component to your email template. Include styles where needed.

import { Link } from "@react-email/link";

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

Props

Name Type Default Description
href string Link to be triggered when the button is clicked
target string _blank Specify the target attribute for the button link

Support

This component was tested using the most popular email clients.

Gmail logo Apple Mail Outlook logo Yahoo! Mail logo HEY logo Superhuman logo
Gmail ✔ Apple Mail ✔ Outlook ✔ Yahoo! Mail ✔ HEY ✔ Superhuman ✔

License

MIT License

Readme

Keywords

Package Sidebar

Install

npm i @react-email/link

Weekly Downloads

277,395

Version

0.0.7

License

MIT

Unpacked Size

10.5 kB

Total Files

7

Last publish

Collaborators

  • gabrielmfern
  • bukinoshita
  • zenorocha