콘텐츠로 이동
RefineUI

Link

인터랙티브 텍스트 하이퍼링크 컨트롤.

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
showExternalIconbooleantrue이면 외부 링크 아이콘을 표시합니다. `target="_blank"`일 때 자동 표시. 숨기려면 false.
disabledfalseboolean링크를 비활성화합니다(`aria-disabled` 설정 및 포인터 이벤트 차단).
hrefstring링크 대상 URL.