BlockSuite API Documentation / @blocksuite/blocks / Template
Type Alias: Template
Template:
object
Type declaration
assets?
optional
assets:Record
<string
,string
>
external assets
content
content:
unknown
template content
name?
optional
name:string
name of the sticker
if not provided, it cannot be searched
preview?
optional
preview:string
type
type:
string
type of template template
: normal template, looks like an article sticker
: sticker template, only contains one image block under surface block
Defined in
packages/blocks/src/root-block/edgeless/components/toolbar/template/template-type.ts:1