mo.ui.button
Create an interactive button that triggers actions when clicked.Signature
Parameters
object
default:"None"
Initial value associated with the button
str
default:"'click here'"
Text displayed on the button
Callable[[object], object]
Callback function called when button is clicked. Return value becomes the button’s new value.
Callable[[object], None]
Callback function called when button value changes
'neutral' | 'success' | 'warn' | 'danger'
default:"'neutral'"
Visual style of the button
bool
default:"False"
Whether the button is disabled
str
Tooltip text shown on hover
bool
default:"False"
Whether button takes full width of container
str
Keyboard shortcut to trigger the button (e.g., “Ctrl+Enter”)