from nbmail.compose import create_blocks, block_text, block_title, block_spacer
create_blocks(
block_title("Welcome!"),
block_text("This is the main content."),
block_spacer("20px"),
block_text("Thanks for reading!")
)
|
Group block components for use in compose_email().
Collects multiple block_*() function calls into a renderable structure.
*args : Union[Block, str] = ()One or more block_*() calls or strings.
: BlockListContainer for blocks, renderable to email content.