Skip to content

Buttons

Buttons prompt most actions in a UI

buttons

Usage

python
from material_ui.buttons import ElevatedButton
# also available: FilledButton, FilledTonalButton, OutlinedButton, TextButton

ElevatedButton(
    text="Hello",
    clicked=lambda: print("Clicked!"),
)

API

Properties

NameTypeDefaultDescription
textstr""Text to display inside the button, indicating the action it will perform.

Signals

NameArgumentsDescription
clickedn/aEmitted when the button is clicked.