Skip to main content

Link

Use the Link component to navigate to a different page within the application. For external resources in a different domain, use the ExternalLink component instead.

Use the Link component to navigate to a different page within the application. For external resources in a different domain, use the ExternalLink component instead.

LinkImport

import { Link } from '@dynatrace/strato-components/typography';

Use cases

CodeSandbox

When linking to an internal resource, the Link component typically needs to be polymorphed into a component from a routing library, such as the Link component from the react-router-dom package, so that the respective API can be used.

To polymorph the Link component, pass the desired element to the as property and provide the corresponding props.

CodeSandbox
Still have questions?
Find answers in the Dynatrace Community