Link

January 21, 2026 ยท View on GitHub

A link component with 2 types:

  1. page - simple link which refers to other pages and parts of the current page
  2. action - link which usually doesn't have a hyperlink and performs an action on click (open dropdown, filter data, etc.)

Usage

import { Link, LinkType, LinkTarget } from "@docspace/ui-kit/components/link";
<Link type={LinkType.page} color="black" href="https://github.com" isBold>
  Bold page link
</Link>

Properties

PropsTypeRequiredValuesDefaultDescription
hrefstring---Used as HTML href property
idstring---Accepts id
isBoldboolean--falseSets font weight to bold
isHoveredboolean--falseSets hovered state and link effects
isSemitransparentboolean--falseSets css-property 'opacity' to 0.5. Usually applied for users with "pending" status
isTextOverflowboolean--trueActivates or deactivates text-overflow CSS property with ellipsis ('...') value
noHoverboolean--falseDisables hover effect
enableUserSelectboolean--falseEnables user selection
typeLinkType-page, actionpageSets the link type
targetLinkTarget-_blank, _self, _parent, _top-Sets the target attribute
labelstring---Label text
textDecorationstring-none, underline, line-through, overline, underline dotted, underline dashed-Sets the text decoration style
ariaLabelstring---Accessibility label for the link
dataTestIdstring---Data attribute for testing
onClickfunction---Callback function triggered when link is clicked. Only for 'action' type
relstring---Used as HTML rel property
tabIndexnumber---Used as HTML tabindex property
titlestring---Used as HTML title property
colorstring-accent or any CSS color-CSS color or accent theme color
classNamestring---Accepts class
styleCSSProperties---Accepts css style

The Link component also inherits all props from the Text component.