A hyperlink to web pages, email addresses, or anything else a URL can address
npm install @react-email/linkInstall component from your command line.
#### With yarn
``sh`
yarn add @react-email/link -E
#### With npm
`sh`
npm install @react-email/link -E
Add the component to your email template. Include styles where needed.
`jsx
import { Link } from "@react-email/link";
const Email = () => {
return Example;
};
`
| 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 |
This component was tested using the most popular email clients.
| |
|
|
|
|
|
| -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| Gmail ✔ | Apple Mail ✔ | Outlook ✔ | Yahoo! Mail ✔ | HEY ✔ | Superhuman ✔ |
MIT License