Buttons

Basic usage:

Sizes:

Button component provides three sizes (large | middle | small)

With Icons:

Uses VC-Icons Font

Disabled:

Loading:

Icons Buttons:

Attributes

AttributeDescriptionTypeAccepted ValuesDefault
colorbutton color schemeStringprimary / secondary / destructiveprimary
sizeButton sizeStringlarge / middle / smallmiddle
typetype of ButtonStringdefault / outline / borderless / plaindefault
iconicon class name (VC-Icons)StringVC-Icon Font---
disabledwhether to disable the buttonBoolean---false
loadingdetermine whether it's loadingBoolean---false

Slots

NameDescription
defaultContent of the Button

Button Events

MethodDescriptionParameters
clickOption click event in case not disabledevent