Interaction
Link
Navigate between pages
Introduction
The Link
component is used to navigate between pages. You can link to internal or external pages.
Internal links
To link to an internal page, use the to
prop pointing to a relative path. For example, to link to the about page, use the following code
By default, the new page will open in the same tab. If you want to open the new page in a new tab, you can use the newTab
prop.
External links
To link to an external page, use the same to
prop but include the full URL you want to link to.
External links open in a new tab by default. If you want to open the link in the same tab, you can set the newTab
prop to false
.