---
title: Examples
slug: wip/94j6-examples
createdAt: 2023-07-20T14:45:03.180Z
---

# 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](https://cosmos.redbull.design/wip/text) or [Title](https://cosmos.redbull.design/wip/title) component.

:::Iframe{iframeHeight="0" code="<iframe&#xA;  title=&#x22;Embeded content from codepen.io&#x22;&#xA;  class=&#x22;no-border max-full-width full-height flex-grow&#x22;&#xA;  src=&#x22;https://codepen.io/redbulldesign/embed/639934d12a91ef6f0a1b7d283a1a5c22?defaultTab=html%2Cresult&#x26;amp;editable=true&#x26;amp;theme-id=39623&#x22;&#xA;  height=&#x22;197px&#x22;&#xA;  loading=&#x22;lazy&#x22;&#xA;></iframe>"}

:::

☝️ 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.

:::Iframe{iframeHeight="0" code="<iframe&#xA;  title=&#x22;Embeded content from codepen.io&#x22;&#xA;  class=&#x22;no-border max-full-width full-height flex-grow&#x22;&#xA;  src=&#x22;https://codepen.io/redbulldesign/embed/bNEPqVB/62d837f0804b4dc26153ea1e3862c006?defaultTab=html%2Cresult&#x26;amp;editable=true&#x26;amp;theme-id=39623&#x22;&#xA;  height=&#x22;197px&#x22;&#xA;  loading=&#x22;lazy&#x22;&#xA;></iframe>"}

:::

