Skip to content

Function: InlineCitation()

ts
function InlineCitation(props: Readonly<{
  sources: string[];
  className?: string;
  label?: string;
}> & RefAttributes<HTMLSpanElement>): Block;

Defined in: src/renderer/blocks/index.ts:2254

Experimental

InlineCitation — small badge embedded inside text that opens a hover card carousel of source URLs.

Parameters

ParameterType
propsReadonly<{ sources: string[]; className?: string; label?: string; }> & RefAttributes<HTMLSpanElement>

Returns

Block

Example

ts
InlineCitation({sources: ['https://a.com', 'https://b.com']});

Matterway Assistant SDK Documentation