Skip to main content

Link

Hyperlink, with markdown support.


Props

  • href (string): href HTML attribute to set to the element.
  • label (string): Hyperlink content. Supports light markdown.
  • [OPTIONAL] id (string): id HTML attribute to set to the element.
  • [OPTIONAL] rel (string): rel HTML attribute to set to the element.
  • [OPTIONAL] target (string): target HTML 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 disabled modifier is automatically added, and all its user interactions are disabled. Defaults to false.

Syntax

<UILink
id="my-id"
rel="noreferrer"
href="https://test.com"
modifiers="large primary"
label="Lorem *ipsum*"
target="_blank"
onClick={myHandler}
/>

Syntax - disabled

<UILink
href="https://test.com"
label="Lorem *ipsum*"
disabled
/>