@mistong/eui-button

0.1.11 • Public • Published

eui-button

an button component for react

Useage

render() {
  <div>
    <Button size="small">small按钮</Button>

    <Button type="primary">primary按钮</Button>
  </div>
}

Button API Props

参数 说明 类型 可选值 默认值
size 按钮大小 string small,medium,large,big medium
type 类型 string primary,secondary,normal normal
disabled 是否禁用 boolean true,false false
className 自定义额外class string - -
htmlType 设置按钮类型 string button,submit,reset button
loading 是否载入状态 boolean true,false false
onClick click事件 function - -
href 按钮生成a链接 string - -

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.11
    0
    • latest

Version History

Package Sidebar

Install

npm i @mistong/eui-button

Weekly Downloads

0

Version

0.1.11

License

MIT

Unpacked Size

51.2 kB

Total Files

13

Last publish

Collaborators

  • caiyue823
  • ejayyoung
  • koshi
  • tellmepz
  • yukap