Link
The Link component provides a link to either a document or a location.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
| text | string | Defines the text to use as a link. | |
| absolute | bool | false | If true, enables the href and target properties and disables the to property. |
| to | string | Specifies the document to link to. | |
| href | string | Specifies the URL to link to. | |
| target | _blank _self string | Sets the window target. |
Style Attributes
| Name | Type | Default | Description |
|---|---|---|---|
| variant | h1 h2 h3 h4 h5 h6 subtitle1 subtitle2 body1 body2 caption button overline srOnly inherit string | inherit | Specifies the display type to use. |
| underline | none hover always string | none | Specifies whether the link is underlined. |
| fontColor | default inherit primary secondary string | primary | Defines the font color of the link. |
For more detail on the Link component, see the MUI developer docs.