terra vidhal

Citation Manager

Component

About

A citation manager with searchable references, type filters, APA, MLA and Chicago formatting, in-text citation previews, add and edit validation, duplicate detection, delete with undo and a copyable bibliography.

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

Code

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

Usage.tsx

"use client";

/**
 * PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
 */

import { CitationManager, type Reference } from "@/components/ui/citation-manager";

const REFERENCES: Reference[] = [
  {
    id: "r1",
    type: "book",
    authors: "Okafor, Amara",
    title: "Designing Calm Interfaces",
    year: 2024,
    publisher: "Northlight Press",
    container: "",
    pages: "",
    url: "",
  },
  {
    id: "r2",
    type: "article",
    authors: "Fischer, Lena; Raman, Priya",
    title: "Attention and the modern dashboard",
    year: 2023,
    publisher: "",
    container: "Journal of Interface Studies",
    pages: "44–61",
    url: "",
  },
  {
    id: "r3",
    type: "chapter",
    authors: "Nakamura, Theo",
    title: "Writing for scanning",
    year: 2022,
    publisher: "Field Press",
    container: "The Practical Handbook of Content Design",
    pages: "112–129",
    url: "",
  },
  {
    id: "r4",
    type: "website",
    authors: "Rivera, Sam",
    title: "A field guide to release notes",
    year: 2025,
    publisher: "Field Notes",
    container: "",
    pages: "",
    url: "https://notes.example.test/release-guide",
  },
  {
    id: "r5",
    type: "article",
    authors: "Moreno, Casey",
    title: "Small teams and slow planning",
    year: 2021,
    publisher: "",
    container: "Studio Review",
    pages: "18–30",
    url: "",
  },
  {
    id: "r6",
    type: "book",
    authors: "Bennett, Noah",
    title: "The Quiet Research Method",
    year: 2020,
    publisher: "Harbor & Lane",
    container: "",
    pages: "",
    url: "",
  },
];

export default function CitationManagerDemo() {
  return (
    <main className="flex min-h-screen w-full items-start justify-center bg-gradient-to-b from-muted/40 via-background to-background px-4 py-8 sm:px-6">
      <CitationManager
        references={REFERENCES}
        title="Reading list citations"
        defaultStyle="apa"
      />
    </main>
  );
}

Dependencies

More by terra vidhal

View all
  • Project Timeline

    Project Timeline

    30
  • Kanban Board

    Kanban Board

    20
  • Gravity Stars Background

    Gravity Stars Background

    20
  • Booking Calendar

    Booking Calendar

    18
  • Notification Center

    Notification Center

    16
  • Audio Waveform

    Audio Waveform

    16
  • Kpi Counter

    Kpi Counter

    16
  • Topographic Lines

    Topographic Lines

    16

Explore more

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