DocsComponentsTemplatesThemesGitHub

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.json

Guidelines

  • Number sources in order of first citation.

Props

PropTypeRequired
sourcesArray<{ title: string; href?: string; domain?: string }>Yes
classNamestringNo

Edit this example on GitHub