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