> ## Documentation Index
> Fetch the complete documentation index at: https://help.dingtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Button 按钮

> Button 按钮组件参考，介绍按钮类型、尺寸、状态等属性及点击事件绑定，用于触发页面中的即时操作。

按钮用于开始一个即时操作。

## 何时使用

* 标记一个（或封装一组）操作命令，响应用户点击行为，触发相应的业务逻辑。

## 组件示例

<iframe src="https://www.aliwork.com/developer/button-v2?isRenderNav=false" width="100%" height="480" frameBorder="0" />

## 组件属性

| 属性                         | 说明                                                                           | 类型                                                                                                                                                              | 默认值         |
| -------------------------- | ---------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| `baseIcon`                 | 按钮基础图标，参考Icon的 **baseIcon** [属性设置](/zh/open/yida/components/basic/icon#组件属性) | `string`                                                                                                                                                        | -           |
| `behavior`                 | 表单展示状态                                                                       | `'NORMAL' \| 'DISABLED' \| 'HIDDEN'`                                                                                                                            | `'NORMAL'`  |
| `content`                  | 按钮文案内容                                                                       | `string`                                                                                                                                                        | `'按钮'`      |
| `contentMarginMobile`      | 手机端按钮的左右间距                                                                   | `'0' \| '16'`                                                                                                                                                   | `'0'`       |
| `loading`                  | 是否处于加载状态                                                                     | `boolean`                                                                                                                                                       | `false`     |
| `otherIcon`                | 其他图标，参考Icon的 **otherIcon** [属性设置](/zh/open/yida/components/basic/icon#组件属性)  | `string`                                                                                                                                                        | -           |
| `size`                     | 按钮尺寸大小                                                                       | `'small' \| 'medium' \| 'large'`                                                                                                                                | `'medium'`  |
| `triggerEventsWhenLoading` | 当按钮为加载状态时，是否响应动作                                                             | `boolean`                                                                                                                                                       | `false`     |
| `type`                     | 按钮的类型                                                                        | `'primary' \| 'normal' \| 'secondary' \| 'ghostLight' \| 'ghostDark' \| 'warningNormal' \|'warningPrimary' \| 'textNormal' \| 'textPrimary' \| 'textSecondary'` | `'primary'` |
