Extensions

Press shift + S to search API reference.

React component

Props

interface LinkProps extends AriaProps, LinkStyleProps, TooltipAnchorProps<HTMLAnchorElement>
childrenReact.ReactNode | string

The contents of the link.

classNameundefined | string

Additional class names to apply to the link.

dataAttributesDataAttributesProp

Data attributes that are spread onto the element, e.g. dataAttributes={{'data-*': '...'}}.

hrefstring

The target URL or URL fragment for the link.

iconIconName | ReactElement

The name of the icon or a react node. For more details, see the list of supported icons.

idundefined | string

The id attribute.

sizeTextSizeProp

The size of the link. Defaults to default. Can be a responsive prop object.

styleReact.CSSProperties

Additional styles to apply to the link.

tabIndexundefined | number

Indicates if the link can be focused and if/where it participates in sequential keyboard navigation.

targetundefined | string

Specifies where to display the linked URL.

underlineundefined | false | true

Adds an underline to the link when true.

variantLinkVariant

The variant of the link, which defines the color. Defaults to default.