yr.columns

columns(
    n: int,
    border: bool = False,
) → LayoutHandle

Lay child blocks out in n side-by-side columns.

Use as a context manager. Blocks emitted inside the with body are distributed across the columns in order.

Parameters

n
type: int

Number of columns.

border
type: bool = False

Whether to draw a border around the layout.

Returns

type: LayoutHandle

A LayoutHandle context manager.