Source Group

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

Installation

npx sdaia-ui@latest add source-group

Usage

import { SourceGroup } from "sdaia-ui"
1<SourceGroup
2 variant="brand"
3 title="Grounding Context Logs (3 Citations)"
4 verification="Strict Verification"
5 items={[
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/>

Examples

Brand

A raised surface with a default border — the default style.

Loading demo: source-group-brand

Neutral

A subtle surface with a subtle border.

Loading demo: source-group-neutral

Outline

A transparent surface with a default border.

Loading demo: source-group-outline

API Reference

Source Group Props

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

'Strict Verification'

optional

showVerification

boolean

true

optional

autoNumber

boolean

true

optional

dir

'ltr' | 'rtl'

'ltr'

optional