Last updated Nov 23, 2022

This section describes a Forge preview feature. Preview features are deemed stable; however, they remain under active development and may be subject to shorter deprecation windows. Preview features are suitable for early adopters in production environments.

We release preview features so partners and developers can study, test, and integrate them prior to General Availability (GA). For more information, see Forge release phases: EAP, Preview, and GA.

To add the Link component to your app:

1
2
import { Link } from '@forge/react';

Description

A component that displays a link.

Props

NameTypeRequiredDescription
hrefstringYes

The prop href behaves like an HTML href. You should include http(s):// for full URLs. Relative paths, such as /wiki, are also supported.

childrenstringYesThe text to display for the link.
openNewTabbooleanWhether or not the link should open in a new tab. Defaults to false.

Example

A link component that will open the https://atlassian.com website in a new tab when clicked.

1
2
<Link href="https://atlassian.com" openNewTab={true}>
  Go to Atlassian
</Link>

Output

Example image of rendered link

Rate this page: