Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

docs: correct on_change desc in `mo.ui.form.form` (#4829)

AbdulHamid Meriib229ca39b35b
diff --git a/marimo/_plugins/ui/_core/ui_element.py b/marimo/_plugins/ui/_core/ui_element.py
index 458b15d180..55ba17203f 100644
--- a/marimo/_plugins/ui/_core/ui_element.py
+++ b/marimo/_plugins/ui/_core/ui_element.py
@@ -406,8 +406,7 @@ class UIElement(Html, Generic[S, T]):
clear_button_tooltip: The tooltip of the clear button.
validate: A function that takes the form's value and returns an error message if invalid,
or `None` if valid.
- on_change: A callback that takes the form's value and returns an error message if invalid,
- or `None` if valid.
+ on_change: Optional callback to run when this element's value changes. Defaults to None.
"""
from marimo._plugins.ui._impl.input import form as form_plugin