0.0.15 • Published 11 days ago

@react-email/button v0.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
11 days ago

React Email button cover

Install

Install component from your command line.

With yarn

yarn add @react-email/button -E

With npm

npm install @react-email/button -E

Getting started

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>
  );
};

Props

NameTypeDefaultDescription
hrefstringLink to be triggered when the button is clicked
targetstring_blankSpecify the target attribute for the button link

Support

This component was tested using the most popular email clients.

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

License

MIT License