Vercel

Sources

AI chats 20

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

    289
  • Message

    Message

    48
  • Conversation

    Conversation

    42
  • Task

    Task

    40
  • Inline Citation

    Inline Citation

    36
  • Loader

    Loader

    22
  • Code Block

    Code Block

    12
  • Suggestion

    Suggestion

    8

More in AI chats

View all
  • AI Actions

    AI Actions

    317
  • Agent Chat

    Agent Chat

    17
  • Color Picker

    Color Picker

    73
  • Prompt with Model Picker

    Prompt with Model Picker

    2
  • Approval Card

    Approval Card

    12
  • System Message

    System Message

    53
  • Stream Reply

    Stream Reply

  • Quota Banner

    Quota Banner

    20