Vercel

Sources

AI chats 21

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

    292
  • Message

    Message

    49
  • Task

    Task

    42
  • Conversation

    Conversation

    42
  • Inline Citation

    Inline Citation

    38
  • Loader

    Loader

    25
  • Code Block

    Code Block

    13
  • Suggestion

    Suggestion

    8

More in AI chats

View all
  • AI Actions

    AI Actions

    339
  • Illos Knowledge Sources

    Illos Knowledge Sources

    40
  • Aquarium Prompt

    Aquarium Prompt

    49
  • Attachments

    Attachments

    38
  • Color Picker

    Color Picker

    171
  • Chat Search

    Chat Search

    1
  • Commit

    Commit

    32
  • Message Thread

    Message Thread

    57