Link
Use the Link component to link to any internal resources. For external
resources (i.e., outside the current environment), use the
ExternalLink
component instead.
LinkImport
import { Link } from '@dynatrace/strato-components/typography';
Use cases
Polymorph the Link component
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.
Still have questions?
Find answers in the Dynatrace Community