Link
Renders a hyperlink to an external resource
Install
Install the component from your command line
pnpm add jsx-email
bun add jsx-email
npm add jsx-email
yarn add jsx-email
Usage
import { Link } from 'jsx-email';
const Email = () => { return ( <> <Link href="https://example.com">Website Link</Link> </> );};
Props
Required Props
href
href: string;
URL for the link.
Optional Props
disableDefaultStyle
disableDefaultStyle?: boolean;
When true
, removes default styles. Useful when using Tailwind
or custom classes.
target
target?: string;
Link target attribute (e.g., ‘_blank’).
Additional Props
This component expresses all of the Common Component Props for ComponentProps<'a'>
.