Link
Link allows users to navigate to a different site or to another page within the current site. Use a link on its own, inline within a sentence, or after a sentence.
| Salt package | @salt-ds/core |
|---|
Use the default link for navigation within the current tab.
Use target="_blank" with rel="noopener" or rel="noreferrer" to open a link in a new tab. See usage for when to choose this behavior and accessibility for how the new-tab cue is announced.
To help create a visual hierarchy using a link, use the color prop. The default color is primary.
Set color="inherit" to inherit hover, active, and focus colors from the parent.
Links change color after a user clicks on them. This tells the user which links they have already visited.
Use the underline prop to compare the default underline with underline="never".
Use the render prop to adapt Link to a routing library. This example renders a React Router link and maps Link’s href to React Router’s to prop.
Note: This prop is deprecated. Use the color prop instead.