Button
This is a button component
Basic Usage
Plain Style
Disabled State
Button Size
Button Shape
Icon Button
Loading State
Props
| Name | Description | Type | Default |
|---|---|---|---|
| type | button type | primary | success | warning | danger | default | default |
| size | button size | mini | small | default | large | default |
| shape | button shape | default | circle | round | default |
| plain | plain style | boolean | false |
| disabled | disabled state | boolean | false |
| loading | loading state | boolean | false |
| icon | icon name | string | - |
| iconColor | icon color | string | - |
| iconSize | icon size | string | - |
Events
| Name | Description |
|---|---|
| click | emitted when the button is clicked. |
Slots
| Name | Description | Type | Subtags |
|---|---|---|---|
| default | button content | any | - |
| loading | loading content | any | - |
| icon | icon content | any | - |
Bailu UI