Source

Displays website sources used by AI-generated content, showing URL details, titles, and descriptions on hover.

Installation

pnpm dlx shadcn-svelte@latest add http://sveltekit-prerender/r/source.json

Examples

Demo

Props

Source

PropTypeDefaultDescription
hrefstring-Source URL shared with nested source trigger/content components.
childrenSnippet-Trigger and content rendered inside the hover card.

SourceTrigger

PropTypeDefaultDescription
labelstring | number-Label shown in the source chip. Falls back to the domain.
showFaviconbooleanfalseShows the favicon beside the label.
classstring-Additional CSS classes for the trigger anchor.

SourceContent

PropTypeDefaultDescription
titlestring-Source title shown in the hover card.
descriptionstring-Source description shown in the hover card.
classstring-Additional CSS classes for the hover card content.