SourceList
Numbered source pills for grounded answers; pair with inline Citation markers.
Code
import * as React from 'react';
import { SourceList } from '@fruit-labs/design';
export default function Demo() {
return (
<SourceList
sources={[
{
title: 'Q3 earnings report',
domain: 'company.com',
},
{
title: 'Market overview 2026',
domain: 'example.org',
},
{
title: 'Internal wiki: pricing',
domain: 'wiki',
},
]}
/>
);
}Install
From npm:
npm install @fruit-labs/design
import { SourceList } from '@fruit-labs/design';Or copy the TypeScript source into your project:
npx shadcn@latest add https://design.fruitlabs.online/r/source-list.jsonGuidelines
- Number sources in order of first citation.
Props
| Prop | Type | Required |
|---|---|---|
sources | Array<{ title: string; href?: string; domain?: string }> | Yes |
className | string | No |