mayurrawte

Source Card

AI chats

About

A citation-style card that links to a source document or webpage, showing its title, domain, an optional favicon, and a numeric index, used to display AI-generated answer references.

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

Code

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

Usage.tsx

import { SourceCards, SourceCard } from "@/components/ui/source-card";

export default function SourceCardDemo() {
  return (
    <SourceCards>
      <SourceCard
        index={1}
        title="Model Context Protocol"
        domain="modelcontextprotocol.io"
        href="https://modelcontextprotocol.io"
      />
      <SourceCard
        index={2}
        title="mcp-elements docs"
        domain="mcp-elements.wearesnx.studio"
        href="https://mcp-elements.wearesnx.studio"
      />
    </SourceCards>
  );
}

Dependencies

More by mayurrawte

View all
  • Feedback Buttons

    Feedback Buttons

    4
  • Streaming Text

    Streaming Text

    4
  • MCP Scope Inspector

    MCP Scope Inspector

    2
  • Tooltip

    Tooltip

    2
  • Accordion

    Accordion

    2
  • Skeleton

    Skeleton

    2
  • Loader

    Loader

    2
  • Dialog

    Dialog

    1

More in AI chats

View all
  • AI Actions

    AI Actions

    372
  • Agent Chat

    Agent Chat

    21
  • Aquarium Prompt

    Aquarium Prompt

    212
  • Illos Knowledge Sources

    Illos Knowledge Sources

    71
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    32
  • AI Chat Composer

    AI Chat Composer

    17
  • AI Response

    AI Response

    16
  • Thumbs pour

    Thumbs pour