Skip to content
RefineUI

Link

Interactive text hyperlink control.

Overview

Machine-readable contract from Component Spec.

component: linkexport: Linkversion: 1attributes: data-refineui=link

Anatomy

Partdata-refineui
rootlink

States

ScopeCategoryValues
componentpseudofocus-visible
componentenvironmentforced-colors, dir, prefers-contrast

Keyboard

KeyActionNative
Enteractivatetrue

Focus

SectionPropertyValue
visualrequiredtrue
visualselector:focus-visible

Layout

PropertyValue
directionlogical
rtltrue

Variant

Select a recipe variant — preview and Recipe → Tokens update together.

Recipe → Tokens

Slot bindings for variant="default" — declared in Link/style → tokens.

SlotVariantPropertyTraceSemanticLight → foundationDark → foundationRecipe class
rootdefaultlink.defaultforegroundLinkblue700blue400text-refineui-alias-foreground-link
roothoverlink.hoverforegroundLinkHoverblue800blue300text-refineui-alias-foreground-link-hover
rootactivelink.activeforegroundLinkActiveblue900blue200text-refineui-alias-foreground-link-active
rootvisitedlink.visitedforegroundLinkVisitedblue500blue100text-refineui-alias-foreground-link-visited
rootdisabledlink.disabledforegroundDisabledneutral400neutral600text-refineui-alias-foreground-disabled
rootsubtle.defaultlink.subtle.defaultforegroundSecondaryneutral600neutral350text-refineui-alias-foreground-secondary
rootsubtle.hoverlink.subtle.hoverforegroundPrimaryprimaryBlackneutralWhitetext-refineui-alias-foreground-primary
rootsubtle.activelink.subtle.activeforegroundBrandStrongneutralBlackprimaryLightGraytext-refineui-alias-foreground-brand-strong

Component token trace

All paths in token-trace-v2.json prefixed with link.

TraceSemanticLight foundationDark foundationLightDark
link.activeforegroundLinkActiveblue900blue200#1D44CE#C3D0FF
link.defaultforegroundLinkblue700blue400#3E68FF#90A8FF
link.disabledforegroundDisabledneutral400neutral600#CECECE#6C6C6C
link.hoverforegroundLinkHoverblue800blue300#2351F7#A9BCFF
link.subtle.activeforegroundBrandStrongneutralBlackprimaryLightGray#000000#E6E6E6
link.subtle.defaultforegroundSecondaryneutral600neutral350#6C6C6C#D8D8D8
link.subtle.hoverforegroundPrimaryprimaryBlackneutralWhite#212121#FFFFFF
link.visitedforegroundLinkVisitedblue500blue100#7694FF#DEE5FF
npm install @refineui/react @refineui/tokens
import { Link } from "@refineui/react";
<Link href="/docs">Documentation</Link>
<Link href="https://example.com" target="_blank">
External Link
</Link>
<Link href="https://example.com" showExternalIcon={false}>
No Icon
</Link>
<Link href="/disabled" disabled>
Disabled Link
</Link>
PropDefaultTypeDescription
showExternalIconbooleanWhen true, shows external-link icon. Shown automatically for `target="_blank"`. Set false to hide.
disabledfalsebooleanDisables link (sets `aria-disabled` and blocks pointer events).
hrefstringLink destination URL.