Skip to main content

Link

Use the Link component for navigational purposes within an app or view, such as navigating to another page in the same Dynatrace environment.

LinkImport

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

Demo

Use as polymorphic 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.

Style inheritance

Link applies link color and underline text decoration but otherwise inherits from its surrounding context. Any inheritable CSS property not explicitly set by the component flows through from the parent.

Still have questions?
Find answers in the Dynatrace Community