App UI kits › Cairn › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
dark | boolean | ||
autoplay | boolean | ||
photos | CiPhotos | ||
question | string | ||
answer | string | Answer 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 |
replay(): voiddestroy(): voidimport CairnAnswer from './CairnAnswer';
<CairnAnswer />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Knowledge base app UI, UK (pounds).