Source

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

Examples

Basic Source

Custom Source

Installation

npx shadcn add "https://prompt-kit.com/c/source.json"

Component API

Source

PropTypeDefaultDescription
hrefstringThe URL of the source
childrenReact.ReactNodeThe content to display

SourceTrigger

PropTypeDefaultDescription
labelstringThe label to display
showFaviconbooleanfalseWhether to show the favicon
classNamestringAdditional CSS classes

SourceContent

PropTypeDefaultDescription
titlestringThe title to display
descriptionstringThe description to display
classNamestringAdditional CSS classes