Notion Helper - v1.3.29
    Preparing search index...
    • Creates a numbered list item block.

      Parameters

      • options: string | Object | string[]

        A string, an array of strings, or an options object representing the list item 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 numbered list item block object compatible with Notion's API.

      // Use with a string
      const simpleItem = block.numbered_list_item.createBlock("Simple list item");

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

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