App UI kits › Errand › Answer with sources

Answer with sources

Citation badges arrive whole as the answer streams, and each source slides in beside them; tap to see the quoted line.

Answer with sources is a screen from Errand, an app ui kit with 11 screens: An AI assistant app whose 3D mascot hands you the day and waits for your OK. Price: $5 for the whole pack.

Built with: streamed answer, citations, quoted sources.

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

Answer with sources props

PropTypeDefaultDescription
darkboolean
autoplayboolean
photosEbPhotos
questionstring
answerstringAnswer text; `[n]` marks a citation of sources[n-1].
sourcesEbSource[]
followstring[]
onFollow(text: string) => void

Methods on the ref

Use it in React

import ErrandAnswer from './ErrandAnswer';

<ErrandAnswer />

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

More in Errand

Good for: AI assistant app UI, UK (pounds).