yr.form

form(
    border: bool = False,
) → LayoutHandle

Group input blocks into a form, submitted together.

Use as a context manager. Input blocks (text_input, buttons, date_picker, slider) emitted inside the with body are presented together and submitted as a single batch when the user completes the form.

Parameters

border
type: bool = False

Whether to draw a border around the form.

Returns

type: LayoutHandle

A LayoutHandle context manager.