Documentation Index
Fetch the complete documentation index at: https://mintlify.com/marimo-team/marimo/llms.txt
Use this file to discover all available pages before exploring further.
mo.ui.form
Wrap UI elements to create a form that only updates when submitted.Overview
Forms prevent UI elements from triggering reactivity on every change. Instead, values are only sent when the form is submitted.Usage
form() method on any UI element:
Examples
Form Behavior
- Values don’t update until form is submitted
- Submit button appears automatically
- Form can be submitted by clicking button or pressing Enter
form.valueisNoneuntil first submission
Related
Batch
Combine multiple UI elements
Interactive Elements
Guide to UI elements