type
Description
Optional. Sets the type of a buttonUsage
type?: string;
Parameters
The property takes the next values, which are types of buttons:
- "primary"
- "secondary"
- "danger"
- "link"
There are also four types of a button block:
- "primary block"
- "secondary block"
- "danger block"
- "link block"
Example
<template>
<Button type="primary">Click Me</Button>
<!--setting a button block -->
<Button type="primary block">Click Me</Button>
</template>
Related article: Specifying the appearance of a button
Related sample: Button