A string, an array of strings, or an options object representing the callout content.
The content as a string, an array of strings, or an array of rich text objects.
An optional icon value (URL for "external" or emoji character for "emoji").
An array of child block objects.
Color for the callout background.
A callout block object compatible with Notion's API.
// Use with a string
const simpleCallout = block.callout.createBlock("I though I told you never to come in here, McFly!");
// Use with options object
const complexCallout = block.callout.createBlock({
rich_text: "Now make like a tree and get outta here.",
icon: "💡",
color: "blue_background",
children: [
// Child blocks would go here
]
});
Creates a callout block.