# Button 组件

常用的操作按钮。

# 基础用法

基础的按钮用法。

使用 type 属性来定义 Button 的样式。

<div>
  <t-button>默认按钮</t-button>
  <t-button type="primary">主要按钮</t-button>
  <t-button type="success">成功按钮</t-button>
  <t-button type="info">信息按钮</t-button>
  <t-button type="warning">警告按钮</t-button>
  <t-button type="danger">危险按钮</t-button>
</div>
显示代码

# Attributes

参数 说明 类型 可选值 默认值
type 类型 string primary / success / warning / danger / info default