Get help from the marimo community

Updated 3 weeks ago

Change color of element programatically

I want to give a hint to the user, that they need to press a submit button, if they have made changes to some parts of the inputs. To do this, I want to nudge them by changing the color of the button to red. I tried with callout, but it seems a bit excessive as it just places a large box around my element. Instead I want to make it more subtle, but still visibly different from the standard button color
M
1 comment
there is a "kind" arg on the button that you pass:
Plain Text
kinds = ["neutral", "success", "warn", "danger"]
mo.vstack([mo.ui.button(label=kind, kind=kind) for kind in kinds])
Add a reply
Sign up and join the conversation on Discord