Skip to main content

Link

The Link component provides a link to either a document or a location.

Properties

NameTypeDefaultDescription
textstringDefines the text to use as a link.
absoluteboolfalseIf true, enables the href and target properties and disables the to property.
tostringSpecifies the document to link to.
hrefstringSpecifies the URL to link to.
target_blank
_self
string
Sets the window target.

Style Attributes

NameTypeDefaultDescription
varianth1
h2
h3
h4
h5
h6
subtitle1
subtitle2
body1
body2
caption
button
overline
srOnly
inherit
string
inheritSpecifies the display type to use.
underlinenone
hover
always
string
noneSpecifies whether the link is underlined.
fontColordefault
inherit
primary
secondary
string
primaryDefines the font color of the link.

For more detail on the Link component, see the MUI developer docs.

on this page