Link
Hyperlink, with markdown support.
Props
- href (string): hrefHTML attribute to set to the element.
- label (string): Hyperlink content. Supports light markdown.
- [OPTIONAL] id (string): idHTML attribute to set to the element.
- [OPTIONAL] rel (string): relHTML attribute to set to the element.
- [OPTIONAL] target (string): targetHTML attribute to set to the element.
- [OPTIONAL] modifiers (string): List of modifiers to apply to the element. Defaults to "".
- [OPTIONAL] disabled (boolean): When element is disabled, a special disabledmodifier is automatically added, and all its user interactions are disabled. Defaults tofalse.
Syntax
- React
- Vue
- Svelte
- HTML
<UILink
  id="my-id"
  rel="noreferrer"
  href="https://test.com"
  modifiers="large primary"
  label="Lorem *ipsum*"
  target="_blank"
  onClick={myHandler}
/>
<UILink
  id="my-id"
  rel="noreferrer"
  href="https://test.com"
  modifiers="large primary"
  label="Lorem *ipsum*"
  target="_blank"
  :onClick="myHandler"
/>
<UILink
  id="my-id"
  rel="noreferrer"
  href="https://test.com"
  modifiers="large primary"
  label="Lorem *ipsum*"
  target="_blank"
  onClick={myHandler}
/>
<a
  id="my-id"
  rel="noreferrer"
  tabindex="0"
  href="https://test.com"
  target="_blank"
  class="ui-link ui-link--large--primary"
>
  Lorem <span class="ui-markdown ui-markdown--strong">ipsum</span>
</a>
Syntax - disabled
- React
- Vue
- Svelte
- HTML
<UILink
  href="https://test.com"
  label="Lorem *ipsum*"
  disabled
/>
<UILink
  id="my-id"
  rel="noreferrer"
  href="https://test.com"
  modifiers="large primary"
  label="Lorem *ipsum*"
  target="_blank"
  :onClick="myHandler"
/>
<UILink
  id="my-id"
  rel="noreferrer"
  href="https://test.com"
  modifiers="large primary"
  label="Lorem *ipsum*"
  target="_blank"
  onClick={myHandler}
/>
<a
  href="https://test.com"
  tabindex="-1"
  class="ui-link ui-link--disabled"
>
  Lorem <span class="ui-markdown ui-markdown--strong">ipsum</span>
</a>