AI-Native

CitationLink

RAG 출처 표시 위첨자 링크 — 호버 시 미리보기.

assistant 응답 안에 인라인으로 삽입. 호버하면 Tooltip으로 출처 제목·발췌·링크가 미리보기됩니다. TooltipProvider로 감싸야 합니다.

import { CitationLink, TooltipProvider } from "@nxtgen-org/react";

Inline citation

본문 안 위첨자 링크

NxtGen은 Pretendard·Geist 폰트를 사용합니다.1Tailwind v3 + Radix + CVA 조합입니다.2

tsx
<p>
NxtGen은 Pretendard·Geist 폰트를 사용합니다.
<CitationLink
index={1}
title="DESIGN.md §0 — Brand"
source="nxtgen-design-system/DESIGN.md"
excerpt="Minimal, calm, technical, intelligent."
href="#"
/>
</p>

API

NameTypeDefaultDescription
index*number출처 번호.
title*string
excerptReactNodeTooltip 본문 발췌.
sourcestring도메인/sub-label.
hrefstring출처 URL.