@react-email/a
A hyperlink to web pages, files, email addresses, or anything else a URL can address.
Install
Install component from your command line.
With yarn
yarn add @react-email/a -E
With npm
npm install @react-email/a -E
Getting started
Add the component to your email template. Include styles where needed.
import { A } from '@react-email/a';
const Email = () => {
return (
<A href="https://example.com">Example</A>
);
};
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 |
License
MIT License