Examples
Examples
Basic usage
To render a Link in a specific variant, provide values to properties according to the API documentation. A Link doesn't come with any specific styling related to typography – it inherits everything from its surrounding. This is why a link usually never comes alone but is always nested into either at Text or Title component.
☝️ If no href attribute is provided, the Link component will render a <button> element instead of an <a>. This has semantic reasons as an <a> tag without a href attribute won't be in the tabbing order by default.
Icon-only links
The linkAriaLabel property provides an accessible name for screen readers when a Link contains only icons or images without visible text.