AI Chat Fancy Stable

InlineCitation

A numbered reference that sits inside a sentence and reveals the document behind it — title, domain and snippet — in a floating card on hover or focus

Preview

Installation

pnpm add fancy-ui-svelte
import { InlineCitation } from 'fancy-ui-svelte'

Usage

svelte
<script lang="ts">
  import { InlineCitation } from 'fancy-ui-svelte';
</script>

<InlineCitation />

Examples

Basic Usage

Props

PropTypeDefaultDescription
source *SourceData-The document being cited; its title, domain and snippet fill the card
index *number-The reference number shown in the marker, e.g. 3 renders [3]
href stringsource.urlLink target; an explicit empty string renders an unlinked marker that only reveals the card
onOpen () => void-Called each time the card appears, once per appearance rather than per hover

Slots

SlotDescription
previewReplaces the default card body; receives the source