ContentModel

16 Dec 20251 minute to read

Interface for a class Content

Properties

content string

Specifies the actual content of the block.

contentType ContentType|string

Defines the type of content for the block.
It can be text, link, code, mention, or label.

id string

Specifies the unique identifier for the block.
For standard types, this acts as the unique identifier of the content.
For special types like Label or Mention, this should be set to the corresponding item ID
from the datasource to render the resolved content.

properties ContentProperties

Specifies the type specific properties for the content.