Buttons
Basic usage:
Expand
Sizes:
Button component provides three sizes (large | middle | small)
Expand
With Icons:
Uses VC-Icons Font
Expand
Disabled:
Expand
Loading:
Expand
Icons Buttons:
Expand
Attributes
Attribute | Description | Type | Accepted Values | Default |
---|---|---|---|---|
color | button color scheme | String | primary / secondary / destructive | primary |
size | Button size | String | large / middle / small | middle |
type | type of Button | String | default / outline / borderless / plain | default |
icon | icon class name (VC-Icons) | String | VC-Icon Font | --- |
disabled | whether to disable the button | Boolean | --- | false |
loading | determine whether it's loading | Boolean | --- | false |
Slots
Name | Description |
---|---|
default | Content of the Button |
Button Events
Method | Description | Parameters |
---|---|---|
click | Option click event in case not disabled | event |