Citation Sources
ProNewThe sites AI assistants cite for a market, most cited first, with your own site set apart and a line that says where you stand.
Installation
pnpm dlx shadcn@latest add @viewport/citation-sources
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| sources* | { domain: string; citations: number; own?: boolean; kind?: string }[]The sites AI answers cite for your topics, with how many answers cited each. | — |
| answers* | numberHow many answers were looked at, for the share. | — |
| title | stringThe heading. | "Sources AI answers cite" |
Accessibility
- An ordered list with each share as text.
- Your site is labelled in words as well as tinted.
- Server component with no client JavaScript.