Vercel

Sources

AI chats 23

About

Here is Sources component

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Sources to your project and fits it to your theme.

Code

How Sources is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import {
  Source,
  Sources,
  SourcesContent,
  SourcesTrigger,
} from '@/components/ui/sources';


export default function DemoOne() {
  return ( 
    <Sources>
      <SourcesTrigger count={1} />
      <SourcesContent>
        <Source href="https://ai-sdk.dev" title="AI SDK" />
      </SourcesContent>
    </Sources>
  );
}

Dependencies

More by Vercel

View all
  • Announcement

    Announcement

    297
  • Message

    Message

    54
  • Task

    Task

    46
  • Conversation

    Conversation

    44
  • Inline Citation

    Inline Citation

    41
  • Loader

    Loader

    29
  • Code Block

    Code Block

    15
  • Flow Controls

    Flow Controls

    10

More in AI chats

View all
  • Agent Chat

    Agent Chat

    21
  • AI Suggestions

    AI Suggestions

    27
  • AI Actions

    AI Actions

    372
  • Interactive LLM Token & Context Window Visualizer

    Interactive LLM Token & Context Window Visualizer

    30
  • Aquarium Prompt

    Aquarium Prompt

    223
  • Message Parts

    Message Parts

    11
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    37
  • AI Chat Composer

    AI Chat Composer

    22