Link

The link serves as a navigational element. It provides a clickable area with styled text and an optional icon, allowing users to access different pages, sections, or external resources within the application.


LinkProps

Name

Description

Type

Default

children

The content of the component

ReactNode

-

classNameForwarded to root elementstring

-

color

The color variant of the Link component

red secondarysecondary
disabledIf true, the component is disabledbooleanfalse
downloadCauses the browser to treat the linked URL as a download, see: MDNboolean

-

hrefThe URL to link to when the link is clickedstring

-

level

The level of the component

h1 h2 h3 h4 h5 body1 body2 body3 body4 buttonbody1
relThe relationship of the linked URL as space-separated link types, see: MDNstring

-

size

The size scale of the Link component

sm md lg

-

styleForwarded to root elementobject

-

target

Where to display the linked URL

_self _blank _parent _top_self
underline

Controls when the link should have an underline

hover alwaysalways
  • All other props will be forwarded to root element

Was this page helpful?