# Citation

A numbered source mark for AI answers that previews the source on hover. PlankUI component for React 19 and Tailwind CSS v4. Category: Display.

## Install

```bash
npx plankui@latest add citation
```

## Usage

```tsx
import { Citation } from "@/components/ui/citation";

<Citation index={1} title="React v19" href="https://react.dev/blog/2024/12/05/react-19" snippet="Actions handle pending states." />
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| index | `number` | `required` | The source's number in the answer. |
| title / href | `string` | `required` | The source and its link. |
| snippet | `ReactNode` |  | A quote shown in the preview. |

Source: https://github.com/VectorLabsHQ/plankui/blob/main/components/ui/citation.tsx
