BlockSuite API Documentation / @blocksuite/blocks / AttachmentBlockProps
Type Alias: AttachmentBlockProps 
AttachmentBlockProps:
object&AttachmentBlockEdgelessProps
Type declaration 
caption? 
optionalcaption:string
embed 
embed:
boolean|BackwardCompatibleUndefined
Whether to show the attachment as an embed view.
name 
name:
string
size 
size:
number
sourceId? 
optionalsourceId:string
style? 
optionalstyle: typeofAttachmentBlockStyles[number]
type 
type:
string
MIME type
Defined in 
packages/affine/model/dist/blocks/attachment/attachment-model.d.ts:27