TipView

To trigger an operation.

When To Use#

A button means an operation (or a series of operations). Clicking a button will trigger corresponding business logic.

API#

To get a customized button, just set type/shape/size/loading/disabled.

PropertyDescriptionTypeDefault
typecan be set to primary dashed danger(added in 2.7) or omittedstring'default'
htmlTypeto set the original type of button, see: MDNstringbutton
iconset the icon of button, see: Icon componentstring-
shapecan be set to circle or omittedstring-
sizecan be set to small large or omittedstringdefault
loadingto set the loading status of buttonboolean | { delay: number }false
onClickset the handler to handle click eventfunction-
ghostmake background transparent and invert text and border color, added in 2.7booleanfalse

<Button>Hello world!</Button> will be rendered into <button>Hello world!</button>, and all the properties which are not listed above will be transferred to the <button> tag.