Link

Renders a hyperlink to an external resource

pnpm
aube
bun
npm
yarn
pnpm add jsx-email

Usage

Add the component to your email template. Include styles where needed.

import { Link } from 'jsx-email';

const Email = () => {
  return <Link href="https://example.com">Example</Link>;
};

Component Props

disableDefaultStyle?: boolean;

If true, instructs the component not to add default style properties to the component. This can be useful when attempting to override default styles with Tailwind or class names.

href: string;

Link to be triggered when the button is clicked.

target?: string;

Specify the target attribute for the button link.

Tips

This component also expresses all of the Common Component Props for ComponentProps<'a'>.