Skip to content

BlockSuite API Documentation / @blocksuite/affine-block-root / Template

Type Alias: Template

Template = object

Defined in: packages/affine/blocks/block-root/src/edgeless/components/toolbar/template/template-type.ts:1

Properties

assets?

optional assets: Record<string, string>

Defined in: packages/affine/blocks/block-root/src/edgeless/components/toolbar/template/template-type.ts:17

external assets


content

content: unknown

Defined in: packages/affine/blocks/block-root/src/edgeless/components/toolbar/template/template-type.ts:12

template content


name?

optional name: string

Defined in: packages/affine/blocks/block-root/src/edgeless/components/toolbar/template/template-type.ts:7

name of the sticker

if not provided, it cannot be searched


preview?

optional preview: string

Defined in: packages/affine/blocks/block-root/src/edgeless/components/toolbar/template/template-type.ts:19


type

type: "template" | "sticker"

Defined in: packages/affine/blocks/block-root/src/edgeless/components/toolbar/template/template-type.ts:26

type of template template: normal template, looks like an article sticker: sticker template, only contains one image block under surface block