ValyroUI Русская версия

Sources

Sources and citations in an answer. Pro · AI chat and agents › Answers and artifacts

The sources behind an answer, numbered to match its Citation chips.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add sources
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { Sources } from 'valyro-ui-pro';

Props

PropTypeDefault
sources *CitationSource[]Cited pages, numbered from 1 in order to match the Citation chips; each opens in a new tab.
variant'list' | 'row''list'list: a collapsible "12 sources" strip over a numbered list. row: scrollable source cards. Default list.
openbooleanExpanded state of the list strip.
defaultOpenbooleanfalseInitial open when uncontrolled.
onOpenChange(open: boolean) => voidCalled with the new open when it changes.
localestringBCP 47 locale for dates; defaults to the ThemeProvider's.
labelsPartial<SourcesLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Memory Panel · Next: Answer Card · All AI chat and agents