Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

React AI Inline Citation

React AI inline citation component with hover cards and carousel for displaying source references in chat responses

You know how Perplexity shows those little citation badges inline with the text? This component does that. When your AI pulls from sources—RAG results, web searches, documents—you can add these inline citation markers that show the domain and, on hover, give the full details. If there are multiple sources for one claim, there's a carousel to flip through them. You can also style quoted text with that classic blockquote look. It keeps responses clean while still giving users a way to verify where information came from. Essential for research assistants, fact-checking, or anything where source attribution matters.

Inline Citation preview

Scroll to load preview

Installation

FAQ