Skip to content

Function: Attachments()

Call Signature

ts
function Attachments(content: ChildBlock[]): Block;

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

Experimental

Attachments — wrapper laying out one or more Attachment chips. Set variant to "inline" for a compact horizontal list.

Parameters

ParameterType
contentChildBlock[]

Returns

Block

Example

ts
Attachments([
  Attachment({name: 'doc.pdf', kind: 'document', size: 1024}),
  Attachment({name: 'photo.png', kind: 'image', thumbnail: 'data:…'}),
]);

Call Signature

ts
function Attachments(options: AttachmentsBlockProps, content: ChildBlock[]): Block;

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

Experimental

Attachments — wrapper laying out one or more Attachment chips. Set variant to "inline" for a compact horizontal list.

Parameters

ParameterType
optionsAttachmentsBlockProps
contentChildBlock[]

Returns

Block

Example

ts
Attachments([
  Attachment({name: 'doc.pdf', kind: 'document', size: 1024}),
  Attachment({name: 'photo.png', kind: 'image', thumbnail: 'data:…'}),
]);

Matterway Assistant SDK Documentation