Skip to content

Link

Props ​

NameTypeDefaultDescription
hrefstring-Link URL. When omitted, the component renders as a <button>.
isExternalLinkbooleanfalseWhether the link opens in a new tab and shows an external indicator.
hasUnderlinebooleanfalseWhether the underline is always visible.
colorLinkColor'accent'Link color. Optional: primary, secondary, accent, inherit.
isDisabledbooleanfalseWhether the link is disabled.
targetstring-HTML target attribute.
relstring-HTML rel attribute. External links automatically add noopener noreferrer.
downloadstring | boolean-Triggers a download of the linked URL.

Events ​

NameDescription
clickEmitted on click. Not emitted when disabled.

Slots ​

NameDescription
defaultLink text content.

Native attributes ​

The root element is <a> or <button>.

The following are passed to the root element:

  • HTML attributes.
  • aria-* attributes.
  • data-* attributes.
  • class.
  • style.