Button
Last updated
Last updated
All attributes are read/write: You can access (read) and modify (set) any attribute at any time, and the changes will immediately reflect in the UI.
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
visible
onClick
-
Triggered when the button is clicked.
See .
Default: "m-0"
See .
Default: True