compose.block_spacer

compose.block_spacer(height='20px')

Insert vertical spacing.

Parameters

height : str = '20px'

The height of the spacer. Can be any valid CSS height value (e.g., “20px”, “2em”). Default is “20px”.

Returns

: Block

A block containing the spacer.

Examples

from nbmail.compose import block_spacer, create_blocks, block_text

create_blocks(
    block_text("First section"),
    block_spacer("30px"),
    block_text("Second section"),
)

First section

Second section