A string, an array of strings, or an options object representing the paragraph content.
The content as a string, an array of strings, or an array of rich text objects.
An array of child block objects.
Color for the text.
A paragraph block object compatible with Notion's API.
// Direct use with a string
const paragraphBlock = block.paragraph.createBlock("Hello, World!");
// Direct use with an array of strings
const multiLineParagraph = block.paragraph.createBlock(["I'm a line", "I'm also a line!"]);
// Usage with options object
const complexParagraph = block.paragraph.createBlock({
rich_text: "Complex paragraph",
color: "red",
children: [
// Child blocks would go here
]
});
Creates a paragraph block.