A container that groups several source citations under one header — summarising how many references back an answer and whether they have been verified — across Brand, Neutral, and Outline styles.
Loading demo: source-group-real-world
npx sdaia-ui@latest add source-group
import { SourceGroup } from '@/components/ui/SourceGroup';1<SourceGroup2variant="brand"3title="Grounding Context Logs (3 Citations)"4verification="Strict Verification"5items={[6{ name: 'Sovereignty_Act.pdf', type: 'File Segment' },7{ name: 'gdpr-text-archive', type: 'Database' },8{ name: 'lex-juris-index', type: 'API Registry' },9]}10/>
A raised surface with a default border — the default style.
Loading demo: source-group-brand
A subtle surface with a subtle border.
Loading demo: source-group-neutral
A transparent surface with a default border.
Loading demo: source-group-outline
Prop | Type | Default | Required |
|---|---|---|---|
variant | 'brand' | 'neutral' | 'outline' | 'brand' | optional |
title | ReactNode | — | required |
items | SourceGroupItem[] | — | required |
icon | string | databaseStroke | optional |
showIcon | boolean | true | optional |
verification | ReactNode | — | optional |
showVerification | boolean | true | optional |
autoNumber | boolean | true | optional |
dir | 'ltr' | 'rtl' | — | optional |
How this component behaves at the three system breakpoints. Spacing and type tokens switch automatically at 768px and 1280px.
| Screen | Behavior |
|---|---|
| Desktop (1280px and up) | Fills its container; the source items share one row equally. |
| Tablet (768–1279px) | Same layout as desktop, with the tablet token values. |
| Phone (under 768px) | From 640px the items stay in one row. Below 640px they stack, each at full width. Long titles are truncated. |