docs/data/material/components/links/links.md
{{"component": "@mui/internal-core-docs/ComponentLinkHeader"}}
The Link component is built on top of the Typography component, meaning that you can use its props.
{{"demo": "Links.js"}}
However, the Link component has some different default props than the Typography component:
color="primary" as the link needs to stand out.variant="inherit" as the link will, most of the time, be used as a child of a Typography component.The underline prop can be used to set the underline behavior. The default is always.
{{"demo": "UnderlineLink.js"}}
One frequent use case is to perform navigation on the client only, without an HTTP round-trip to the server.
The Link component provides the component prop to handle this use case.
Here is a more detailed guide.
(WAI-ARIA: https://www.w3.org/WAI/ARIA/apg/patterns/link/)
underline="always" behavior.<button> element.
The demo below illustrates how to properly link with a <button>:{{"demo": "ButtonLink.js"}}
aria-label to inform screen reader users—for example, "To learn more, visit the About page which opens in a new window."