Skip to main content
A standalone button component that can be linked to a click event handler.

Fields

NameTypeDescriptionOptions
TextText--
DisabledBooleanDisables all event handlers.-
ButtonColor--
Button textColor--
Button shadowShadow--
SeparatorColor--
Custom CSS classesTextCSS classes, separated by spaces. You can define classes in custom stylesheets.-

Events

Capture single clicks.
def handle_button_click(state):

# Increment counter when the button is clicked

state["counter"] += 1
I