Component packs › Muse › Citation Hovercard

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.

Citation Hovercard props

PropTypeDefaultDescription
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.
autoplaynumber | falseShowcase mode: opens the next source every N ms while visible.

Methods on the ref

Use it in React

import CitationCard from './CitationCard';

<CitationCard />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Muse

Good for: AI writing UI.