Appearance
Function: Sources()
Call Signature
ts
function Sources(content: ChildBlock[]): Block;Defined in: src/renderer/blocks/index.ts:2218
Experimental
Sources — collapsible list of cited URLs shown beneath a Message. Drop Source blocks inside.
Parameters
| Parameter | Type |
|---|---|
content | ChildBlock[] |
Returns
Example
ts
Sources([
Source({href: 'https://example.com', title: 'Example article'}),
]);Call Signature
ts
function Sources(options: SourcesBlockProps, content: ChildBlock[]): Block;Defined in: src/renderer/blocks/index.ts:2219
Experimental
Sources — collapsible list of cited URLs shown beneath a Message. Drop Source blocks inside.
Parameters
| Parameter | Type |
|---|---|
options | SourcesBlockProps |
content | ChildBlock[] |
Returns
Example
ts
Sources([
Source({href: 'https://example.com', title: 'Example article'}),
]);