Skip to content
Get Pro

Inline Citation

A numbered reference inside prose with an inspectable source preview.

Loading component preview…

Installation

Add the component source directly to your project.

pnpm dlx shadcn@latest add https://pastaui.com/r/inline-citation.json

API reference

Inline Citation

Inline Citation properties
PropTypeDefaultDescription
indexnumberDisplays the reference number.
open / onOpenChangeboolean / (open: boolean) => voidfalse / —Controls the citation preview.
onOpenSource() => voidOpens the original source.