Appearance
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
| Parameter | Type |
|---|---|
content | ChildBlock[] |
Returns
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
| Parameter | Type |
|---|---|
options | AttachmentsBlockProps |
content | ChildBlock[] |
Returns
Example
ts
Attachments([
Attachment({name: 'doc.pdf', kind: 'document', size: 1024}),
Attachment({name: 'photo.png', kind: 'image', thumbnail: 'data:…'}),
]);