Skip to content

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: typeof AttachmentBlockStyles[number]

type

type: string

MIME type

Source

packages/blocks/src/attachment-block/attachment-model.ts:37