Components
Button
Button is used to initiate actions on a page or form.
Usage ¶
States ¶
Variants ¶
With icons ¶
Sizes ¶
Shapes ¶
Component arguments ¶
Button
¶
Argument | Type | Description |
---|---|---|
href |
str |
Optional. Pass this argument to have a link that looks like a button. |
var |
str |
Optional. The variant of the button. Can be one of: outline , ghost , text , primary success , warning , critical , option , accent , outline-primary , outline-success , outline-warning , outline-critical , outline-option , or outline-accent . |
size |
str |
Optional. The size of the button. Can be one of: mini , small , medium , large , or xlarge . Default is medium . |
shape |
str |
Optional. The shape of the button. Can be one of: circle , or square . |
block |
bool |
Optional. If True , the button will take the full width of its parent. Default is False . |
disabled |
bool |
Optional. If True , the button will be disabled. Default is False . |
loading |
bool |
Optional. If True , the button will show a loading spinner and no other icon. Default is False . |
icon |
str |
Optional. The name of the Material Symbol icon to show on the button. |
Components ¶
Component |
File |
Source |
---|---|---|
Button |
button.jinja |
|
button.css |