Notion Helper - v1.3.29
    Preparing search index...

    Function createBlock

    • Creates a callout block.

      Parameters

      • options: string | Object | string[]

        A string, an array of strings, or an options object representing the callout content.

        • string
        • Object
          • rich_text

            The content as a string, an array of strings, or an array of rich text objects.

          • icon

            An optional icon value (URL for "external" or emoji character for "emoji").

          • children

            An array of child block objects.

          • color

            Color for the callout background.

        • string[]

      Returns Object

      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
      ]
      });