yr.container

container(
    border: bool = False,
) → LayoutHandle

Group child blocks into a single container.

Use as a context manager. Blocks emitted inside the with body are grouped together as a visual unit.

Parameters

border
type: bool = False

Whether to draw a border around the container.

Returns

type: LayoutHandle

A LayoutHandle context manager.