# Button
Commonly used action buttons.
# size
There are three types of button sizes
- Large button
- Medium button(default)
- Small button
# Button width adaptive
The side-by-side button can be used in two ways:
- According to the text content, the button width is adaptive: Small buttons have a fixed spacing of 8px; medium buttons are 16px; large buttons are 24px.
- Among them, the minimum width of small, medium and large buttons are: 58px, 74px, 96px
# 按钮分类
# disabled
# API
field | explain | type | default |
---|---|---|---|
type | The value can be Default, Primary, Warning, or Danger | String | - |
size | There are three types of button sizes: Small, Normal, and large | String | normal |
disabled | Disable button. In the disabled state, the button cannot be clicked. | Boolean | false |
plain | Use the plain property to set the button to a plain button, whose text is the color of the button and whose background is white 。 | Boolean | false |
text | Is it just a text button | Boolean | false |
icon | For the Icon before the button, refer to the Icon component | String | - |
color | The Icon before the button, refer to the Icon component to customize the color, including text and picture colors | String | - |
loading | loading state | Boolean | false |