Skip to content

BlockSuite API Documentation / @blocksuite/blocks / AttachmentBlockProps

Type alias: AttachmentBlockProps

AttachmentBlockProps: Object & AttachmentBlockEdgelessProps

Type declaration

caption?

caption?: string

embed

embed: boolean | BackwardCompatibleUndefined

Whether to show the attachment as an embed view.

name

name: string

size

size: number

sourceId?

sourceId?: string

style?

style?: typeof AttachmentBlockStyles[number]

type

type: string

MIME type

Source

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


Generated using TypeDoc and typedoc-plugin-markdown.