按钮 Button
按钮组件通过点击执行一个具体的行为或动作。
何时使用
需要通过点击按钮响应行为的时候
如何使用
import { Button } from 'tinper-bee';
or
import Button from 'bee-button';
import 'bee-button/build/Button.css';
代码演示
API
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
size | 按钮大小(lg xg md sm ) |
string | - |
colors | 颜色(primary/secondary/accent/success/info/warning/danger/dark/light/default) | string | ‘’ |
shape | 形状(block/round/squared/floating/pillRight/pillLeft/icon) | string | ‘’ |
disabled | 是否禁用(disabled 或 true false ) |
boolean | false |
bordered | 是否是边框型(bordered 或 true false ) |
boolean | false |
className | 增加额外的class | string | ‘’ |
htmlType | html dom 的 type 属性(submit button reset ) |
string | button |
style | style 属性 | object | ‘’ |
注意事项
暂无