A dedicated space to browse, filter and open every source behind an answer. The same data-driven content renders as a side panel, an inline list, or a modal — with confidence meters, verification badges, a featured detail panel and a metadata table.
Loading demo: source-explorer-real-world
npx sdaia-ui@latest add source-explorer
import { SourceExplorer } from '@/components/ui/SourceExplorer';1<SourceExplorer2layout="side-panel"3title="Sources"4verified5subtitle="8 sources used · 6 verified"6filters={["All types", "PDF", "Web", "Internal"]}7sources={SOURCES}8detail={DETAIL}9metadata={METADATA}10/>
A docked panel beside the conversation — full source list, detail and metadata.
Loading demo: source-explorer-side-panel
A compact strip of source chips embedded in the message flow.
Loading demo: source-explorer-inline
A focused two-column overlay for deeper exploration.
Loading demo: source-explorer-modal
High-emphasis, brand-coloured surface.
Loading demo: source-explorer-brand
Bordered, transparent fill.
Loading demo: source-explorer-outline
Prop | Type | Default | Required |
|---|---|---|---|
layout | 'side-panel' | 'inline' | 'modal' | 'side-panel' | optional |
variant | 'neutral' | 'brand' | 'outline' | 'neutral' | optional |
style | 'neutral' | 'brand' | 'outline' | — | optional |
sources | SourceExplorerItem[] | [] | optional |
title | ReactNode | 'Sources' | optional |
count | number | — | optional |
verified | boolean | false | optional |
subtitle | ReactNode | — | optional |
filters | string[] | — | optional |
detail | SourceExplorerDetail | — | optional |
metadata | SourceExplorerMetaRow[] | — | optional |
moreCount | number | — | optional |
primaryActionLabel | ReactNode | 'View all sources' | optional |
footerNote | ReactNode | — | optional |
onClose | (e) => void | — | optional |
dir | 'ltr' | 'rtl' | — | optional |
labels | Partial<SourceExplorerLabels> | — | 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) | side-panel: up to 440px wide. modal: up to 820px wide, with the list and a 300px details column side by side. inline fills its container. |
| Tablet (768–1279px) | Same widths. The modal stacks the details below the list whenever the modal itself is narrower than 680px, whatever the screen size. |
| Phone (under 768px) | All layouts shrink to the screen width; the modal stacks its columns. Filter chips and actions wrap; long titles are truncated. |