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.
Emoji text, native Notion icon string name, external image URL, or valid icon object for paragraph icon. Can only be set if the paragraph block is a direct child of a Tab block.
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.