App UI kits › Cairn › Answer with cited cards

Answer with cited cards

Each citation drops its card onto a cairn as the answer is written; a late card lands leaning and the answer says so.

Answer with cited cards is a screen from Cairn, an app ui kit with 10 screens: A team knowledge base app where every answer shows its sources, and old cards lean. Price: $5 for the whole pack.

Built with: source cairn, stone physics, honest warning.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Answer with cited cards props

PropTypeDefaultDescription
darkboolean
autoplayboolean
photosCiPhotos
questionstring
answerstringAnswer text; `[n]` cites cites[n-1].
cites[string, number][]Card ids, and for each the sentence that was used.
onExpert(person: CiPhotoKey) => void
onOpen(cardId: string) => void

Methods on the ref

Use it in React

import CairnAnswer from './CairnAnswer';

<CairnAnswer />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Cairn

Good for: Knowledge base app UI, UK (pounds).