Button
class UI.Button

Attribute
Value
label
any string
variant
"solid"
"bordered"
"ghost"
"light"
"flat"
"cta"
Default: "solid"
color
"primary"
"default"
"success"
"danger"
Note: If cta variant is used, custom color will not be applied.
Default: "primary"
size
"sm"
"md"
Default: "md"
full_width
True | False
Default: False
disabled
True | False
Default: False
loading
True | False
Default: False
margin
See Margin.
Default: "m-0"
visible
See Visible.
Default: True
Events
Event
Arguments
Description
onClick
-
Triggered when the button is clicked.
Last updated
Was this helpful?