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
Installation
Related Components
React AI Sources
Source list display
React AI Message
Chat message bubbles
React AI Chain Of Thought
Reasoning with citations
React AI Reasoning
AI thinking display
React AI Web Preview
URL preview cards
React AI Tool
Tool execution display