Component packs › Muse › Citation Hovercard
Point at a source and the claim it backs is underlined and a line is drawn to the exact passage it rests on.
Citation Hovercard is a citations from Muse, a component pack with 6 AI writing components: AI writing controls that show every change as an edit you can read and trace. Price: $2 for the whole pack.
Built with: traced line, passage highlight, keyboard markers.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
parts | (string | { claim: string; source: number })[] | Answer parts: plain text, or a claim with the source it cites. | |
sources | { title: string; where: string; quote: string; match: string; href?: string }[] | Sources, numbered from 1. `quote` must contain `match`, which is highlighted. | |
autoplay | number | false | Showcase mode: opens the next source every N ms while visible. |
open(source: number): voidclose(): voiddestroy(): voidimport CitationCard from './CitationCard';
<CitationCard />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: AI writing UI.