
Links
However, the Link component has different default properties than the Typography component:
- as the link needs to stand out.
- as the link will, most of the time, be used as a child of a Typography component.
Security
When you use with Links, it is recommended to always set or when linking to third party content.
- prevents the new page from being able to access the property and ensures it runs in a separate process. Without this, the target page can potentially redirect your page to a malicious URL.
- has the same effect, but also prevents the Referer header from being sent to the new page. ⚠️ Removing the referrer header will affect analytics.
Third-party routing library
One common use case is to perform navigation on the client only, without an HTTP round-trip to the server. The component provides a property to handle this use case: .
Here is an integration example with react-router.
Accessibility
(WAI-ARIA: warwickbromleyfiles.co.uk#link)
Источник: [warwickbromleyfiles.co.uk]
-
-