Skip to content
Sign upGet access
MicrointeractionsCitation bloomMenu

Citation bloom (Pro)

ProIncluded in $99

A citation that opens where it sits: the raised footnote number grows into its source card, starting from the number's own box.

ProRest on a footnote number and it grows into its source card, starting from the number's own box; leaving folds it back.

Rest on the small raised footnote number in a sentence, focus it or tap it, and the number itself grows into the source card: the card's outline starts as the number's own box and opens out to full size, and the site, title and quoted passage settle in once there is room. Leaving folds it back into the number. Near the right edge it opens leftward.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/citation-bloom

Needs chatcn Pro

This command works with a Pro license, along with every Pro component.

Or start free: sign up and get three Pro components on us, with a new one every month.

Usage

tsx
import { CitationBloom } from "@/components/ui/chatcn/pro/citation-bloom"

<p>
  Rotating refresh tokens work once
  <CitationBloom index={1} source={{ title, url, quote }} />
</p>

Props

PropTypeNotes
indexnumberThe footnote number
source{ title, url, site?, quote?, icon? }
open / onOpenChangeboolean / (open) => voidControlled, for tours

Keyboard

KeyAction
TabFocus the chip, which opens it
Enter / SpaceToggle
EscapeClose

Accessibility

  • The chip is a button named Source 1 with the title, with aria-expanded; the card is a note with a real link.
  • Hover opens after 120 ms and closes after 160 ms, so passing over text does not flash cards.

Motion

  • The bloom is a clip-path inset from the number's box to the card's, 300 ms; content fades in 110 ms later. Folding is 200 ms.
  • Reduced motion: a short fade.