Kevin

Inline Citations

Component 17

About

Prose text with inline numbered citation chips that link to sources, reveal the reference name on hover, and list all references in a footer.

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

Code

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

Usage.tsx

import { InlineCitations } from "@/components/ui/inline-citations";

export default function Default() {
  return (
    <div className="flex min-h-[320px] w-full items-center justify-center p-8">
      <div className="w-full max-w-md">
        <InlineCitations />
      </div>
    </div>
  );
}

More by Kevin

View all
  • Image Generation

    Image Generation

    254
  • Thinking Reasoning

    Thinking Reasoning

    84
  • Agent To-do List

    Agent To-do List

    51
  • Orbs Morph

    Orbs Morph

    35
  • Orbs Helix

    Orbs Helix

    34
  • Web Search

    Web Search

    32
  • AI Agent Input

    AI Agent Input

    31
  • File Diff

    File Diff

    22

Explore more

Part of AIcss — browse the full library on 21st.dev.