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

    Function createBlock

    • Creates a quote block.

      Parameters

      • options: string | Object | string[]

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

        • string
        • Object
          • rich_text

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

          • children

            An array of child block objects.

          • color

            Color for the text.

        • string[]

      Returns Object

      A quote block object compatible with Notion's API.

      // Use with a string
      const simpleQuote = block.quote.createBlock("Simple quote");

      // Use with an array of strings
      const multiLineQuote = block.quote.createBlock(["Line 1 of quote", "Line 2 of quote"]);

      // Use with options object
      const complexQuote = block.quote.createBlock({
      rich_text: "Complex quote",
      color: "gray",
      children: [
      // Child blocks would go here
      ]
      });