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. Can be an emoji character, a URL for an externally-hosted image file, a non-URL string representing a native Notion icon, or a fully-formed icon object.
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.