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

0.0.18 • Public • Published

React Email button cover

@react-email/button
A link that is styled to look like a button.

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

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/button

Weekly Downloads

330,748

Version

0.0.18

License

MIT

Unpacked Size

22.1 kB

Total Files

7

Last publish

Collaborators

  • gabrielmfern
  • bukinoshita
  • zenorocha