DocsComponentsLink

Link

Link component is styled to resemble a hyperlink for navigating between pages.

Usage

Disabled

Sizes

Colors

Underline

External

If you set the target attribute or data-show-anchor-icon attribute to true, it will show an anchor icon.

If you set the data-block attribute, the link will be rendered as a block element with a hover effect.

Data Attributes

  • data-disabled: When the link is disabled.
  • data-block: When the link is rendered as a block element with a hover effect.
  • data-show-anchor-icon: When the anchor icon is shown in external links.
PropertyTypeDescriptionDefault
sizesm | md | lgThe size of the link.md
colorforeground | default | primary | secondary | success | warning | dangerThe color of the link.foreground
underlinenone | hover | always | active | focusThe underline of the link.none
targetHTMLAttributeAnchorTargetThe target window for the link. See MDN.-
data-show-anchor-icon"true" | "false"Whether to show the anchor icon.false
data-block"true" | "false"Whether the link should be rendered as block with a hover effect.false
data-disabled"true" | "false"Whether the link is disabled.false