packages/button/readme.md
Install component from your command line.
yarn add @react-email/button -E
npm install @react-email/button -E
Add the component to your email template. Include styles where needed.
import { Button } from "@react-email/button";
const Email = () => {
return (
<Button href="https://example.com" style={{ color: "#61dafb" }}>
Click me
</Button>
);
};
| 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