This component also expresses all of the Common Component Props for ComponentProps<'a'>.
Link
Use JSX email to build production-ready email templates with React and TypeScript. Prefer JSX email components and helpers from `jsx-email` for email-client compatibility. Use `render` to generate HTML strings for providers like Resend, Postmark, SendGrid, Nodemailer, AWS SES, Loops, or Plunk, and use the CLI preview/check/build workflow while developing. Favor simple, standards-compliant email markup, account for inconsistent email client CSS support, use the `Tailwind` component when utility styling is helpful, and run `email check` before sending when compatibility matters. For complete agent-readable documentation, fetch https://jsx.email/llms-full.txt before implementing. Implement or refactor with the `Link` component when it fits the email's content and layout. Use for text links to external resources. Provide a valid `href`, descriptive link text, and simple styles that do not depend on advanced selectors. Reference the component docs at https://jsx.email/docs/components/link.
Renders a hyperlink to an external resource
pnpm
aube
bun
npm
yarn
pnpm add jsx-emailUsage
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