Passkeys are phishing-resistant by design1: the credential is bound to your domain, so a look-alike site receives nothing it can replay2. Security agencies now recommend them over one-time codes3, and support is broad across platforms and password managers4.
Citations
citationsSources for an AI answer: numbered inline markers that preview their source on hover or focus, and a Sources line with stacked favicons that opens into the numbered list.
import { FileText } from "lucide-react";
import { TooltipProvider } from "@/components/forme/tooltip/tooltip";
import { Citation, Citations } from "@/components/forme/citations/citations";
import type { CitationSource } from "@/components/forme/citations/citations";
const sources: CitationSource[] = [
{
title: "Prorations for subscription changes",
url: "https://docs.stripe.com/billing/subscriptions/prorations",
},
{ title: "Proration explained", url: "https://www.paddle.com/help/manage/proration" },
{ title: "billing/plans.ts", domain: "Your repository", icon: <FileText /> },
];
export function CitationsDemo() {
return (
<TooltipProvider>
<div className="flex w-full max-w-xl flex-col gap-3 text-body-regular text-foreground">
<p>
Prorating means charging only for the part of the cycle that is left
<Citation index={1} source={sources[0]!} />. Most providers do it by default on an upgrade
and issue a credit on a downgrade
<Citation index={2} source={sources[1]!} />, and your plans already store the cycle length
you need
<Citation index={3} source={sources[2]!} />.
</p>
<Citations sources={sources} />
</div>
</TooltipProvider>
);
}Install
Adds the component, its registry dependencies, and the token stylesheet you import once.
Examples
1 more ways to put it to work. Install one by name and it lands beside the component, or copy it from the Code tab into your app.
Answer with sources
A research answer with inline citations, a stack of favicons for how many places it drew on, and the full list beneath.
"use client";
import { TooltipProvider } from "@/components/forme/tooltip/tooltip";
import { Citation, Citations, CitationStack } from "@/components/forme/citations/citations";
import type { CitationSource } from "@/components/forme/citations/citations";
const sources: CitationSource[] = [
{
title: "Passkeys overview",
url: "https://passkeys.dev/docs/intro/what-are-passkeys/",
domain: "passkeys.dev",
},
{
title: "Web Authentication Level 3",
url: "https://www.w3.org/TR/webauthn-3/",
domain: "w3.org",
},
{ title: "Phishing-resistant MFA", url: "https://www.cisa.gov/", domain: "cisa.gov" },
{
title: "Passkey support across platforms",
url: "https://passkeys.dev/device-support/",
domain: "passkeys.dev",
},
];
export function SourcesListExample() {
return (
<TooltipProvider>
<article className="flex w-full max-w-xl flex-col gap-3 text-body-regular text-foreground">
{/* A research answer: the stack says at a glance how many places it drew on. */}
<header className="flex items-center gap-2 text-caption-1-medium text-muted-foreground">
<CitationStack sources={sources} />
Drew on {sources.length} sources
</header>
<p>
Passkeys are phishing-resistant by design
<Citation index={1} source={sources[0]!} />: the credential is bound to your domain, so a
look-alike site receives nothing it can replay
<Citation index={2} source={sources[1]!} />. Security agencies now recommend them over
one-time codes
<Citation index={3} source={sources[2]!} />, and support is broad across platforms and
password managers
<Citation index={4} source={sources[3]!} />.
</p>
<Citations sources={sources} />
</article>
</TooltipProvider>
);
}API reference
Read from the source, so it is the API of the file you install. A prop marked * is required.
CitationFavicon
The source's own favicon, from its origin, falling back to a globe when it has none or it fails to load. Read from the site itself rather than a favicon service, so citing a page tells no third party what was cited.
| Prop | Type | Default | Description |
|---|---|---|---|
source* | CitationSource | — | |
className | string | — |
Citation
An inline marker in the text. Hovering or focusing it previews the source; choosing it opens the source. Its name includes the number, so someone using voice control can say the number they see.
| Prop | Type | Default | Description |
|---|---|---|---|
index* | number | — | The number shown, matching the source's place in the list. |
source* | CitationSource | — | |
className | string | — |
CitationStack
Up to limit favicons, overlapped: how many places an answer drew on, at a glance.
| Prop | Type | Default | Description |
|---|---|---|---|
sources* | readonly CitationSource[] | — | |
limit | number | 3 | |
className | string | — |
Citations
The sources under an answer: a Trace line — favicons, a count — that opens into the numbered list, one linked line per source. Sources arriving while it is open slide in rather than appear, so a list filling during a search reads as it happens.
| Prop | Type | Default | Description |
|---|---|---|---|
sources* | readonly CitationSource[] | — | |
title | ReactNode | "Sources" | |
defaultOpen | boolean | false | |
className | string | — |
Related


Area Chart
A line or area chart in plain SVG with no chart library. A crosshair snaps to the nearest point and lists every series, arrow keys walk it, round tick values, a legend from two series up, and a hidden table so screen readers get the numbers.
data display

Avatar
A user image with a fallback that shows initials while the image loads, and when it never arrives at all. Built on the Base UI avatar primitive, so the image and the fallback swap without a flash of empty space.
data display

Badge
A small label for status, counts and metadata, in five quiet variants and two sizes. The colour lives in the tint so the text stays readable at eleven pixels, and an icon or a dot inside the badge carries the state at a glance.
data display