AI product
Sources
what an answer is based on · numbered chips · [n] in text → inline citations · previews in a Sheet
function SourcesDemo() { return ( <View className="w-full gap-3"> <CitedText text={ANSWER} sources={SOURCES} /> <SourceList sources={SOURCES} /> </View> );}Usage
Cite whenever the answer uses the person’s data or a document. Stream the answer with stripCitations, then show CitedText and SourceList once it is complete.
API
<CitedText text="… [1]" sources={[{ title, meta?, snippet?, href? }]} /><SourceList sources />Get it
Already in every copy of the native kit:
import { SourceList, CitedText, stripCitations } from '@/components/kit/sources';Details
- Exports
SourceList,CitedText,stripCitations- Packages
- lucide-react-native@^1.21.0
- Installs with
- @halftone-native/icon, @halftone-native/lib-utils, @halftone-native/sheet, @halftone-native/text
- Also searched as
- citations, references, footnotes, grounding
- Registry JSON
- /r/native/sources.json
() => { const sources = [ { title: 'INV-1045 · Lumen Labs', meta: 'Invoice · due 24 May · £2,310', snippet: 'Brand refresh, phase 2. Payment due within 14 days of issue.' }, { title: 'Payment timing by customer', meta: 'Report · Jan–Jun', snippet: 'Lumen Labs: 17 days late on average.' }, ]; return ( <div className="flex max-w-xl flex-col gap-3 leading-7"> <CitedText text="Lumen Labs owes £2,310 [1] and usually pays about two and a half weeks late [2]." sources={sources} /> <SourceList sources={sources} /> </div> );}Usage
Cite whenever the answer uses the person’s data or a document. Stream the answer with stripCitations, then show CitedText and SourceList once it is complete.
API
<CitedText text="… [1]" sources={[{ title, meta?, snippet?, href? }]} /><SourceList sources />Get it
Already in every copy of the web kit:
import { SourceList, CitedText, stripCitations } from '@/components/kit/sources';Details
- Exports
SourceList,CitedText,stripCitations- Packages
- cn@^0.5.2, lucide-react@^1.52.0
- Installs with
- popover
- Also searched as
- citations, references, footnotes, grounding
- Registry JSON
- /r/web/sources.json
Agents: the whole registry is at /llms.txt.