Skip to content

BlockSuite API Documentation / @blocksuite/blocks / createEmbedBlock

Function: createEmbedBlock()

createEmbedBlock<Props, Model, WidgetName, Transformer>(__namedParameters): BlockSpec

Type parameters

Props extends object

Model extends EmbedBlockModel<Props>

WidgetName extends string = string

Transformer extends BaseBlockTransformer<EmbedProps<Props>> = BaseBlockTransformer<EmbedProps<Props>>

Parameters

__namedParameters: EmbedBlockGeneratorOptions<Props, Model, WidgetName, Transformer>

Returns

BlockSpec

Source

packages/blocks/src/_common/embed-block-helper/helper.ts:14