Button
Example
More examples please refer Demo
API
Attribute | Description | Type | Default |
---|---|---|---|
type | Button type, can be set to |
|
|
size | Button Size, can be set to |
|
|
text | Button Text |
| - |
width | Button Width |
| - |
height | Button Height |
| - |
color | Color, support linear-gradient | `Color | Gradient` |
icon | Left Icon |
| - |
textColor | Button Text Color |
| - |
block | Whether to set display block |
|
|
plain | Whether to be plain button |
|
|
square | Whether to be square button |
|
|
round | Whether to be round button |
|
|
disabled | Whether to disable button |
|
|
loading | Whether to show loading status |
|
|
hairline | Whether to use 0.5px border |
|
|
padding | Custom Padding |
| - |
borderRadius | Custom Broder Radius |
| - |
onClick | Triggered when click button and not disabled or loading |
| - |
Last updated