[TOC]
# import
>[success] import
# extends
* import hy\_ui.`hy_activeTxtBase`
```
```
# 构造参数
| 参数 | 类型 | 默认 | 可选 |
| --- | --- | --- | --- |
| text | `String` | `按钮` | 按钮名称 |
| color | `String` | `default` | default,primary,success,info,warning,danger,blue,black,error |
| size | `String` | `de` | de,lg,slg,sm,xs |
| icon | `String` | `图标` | 图标名称 |
# 使用
``` as3
var btn:hy_button=new hy_button("按钮","success","de","edit")
this.addChild(btn)
```
# 属性
* ## 宽度
>[info] `width`:Number \[ get | set \]
>[warning] 如果不设置宽度,根据文字自适应
```
```
```
```
* ## 高度
>[info] `height`:Number \[ get | set \]
>[warning] 如果不设置高度,根据文字自适应
```
```
```
```
# 监听事件
* ## click
>[info] on("click",function)
```
```