To add the Link
component to your app:
1 2import { Link } from '@forge/react';
A component that displays a link. Use this component for inline links.
Name | Type | Required | Description |
---|---|---|---|
href | string | Yes | The prop |
children | string | Yes | The text to display for the link. |
openNewTab | boolean | No | Whether or not the link should open in a new tab. Defaults to false . |
A link component that will open the https://atlassian.com
website in a new tab when clicked.
1 2const LinkExample = () => { return ( <Text> <Link href="https://atlassian.com">Log in</Link> to view this content </Text> ); }
Rate this page: