JSPM

  • Created
  • Published
  • Downloads 609
  • Score
    100M100P100Q110640F
  • License MIT

tinper-bee button ui component for react

Package Exports

  • bee-button
  • bee-button/build/Button.css
  • bee-button/src/index

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bee-button) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

button

npm version Build Status devDependency Status

react button component for tinper-bee

setup develop environment

$ git clone https://github.com/tinper-bee/button
$ cd button
$ npm install
$ npm run dev

使用

使用单独的button包

组件引入

先进行下载button包

npm install --save bee-button

组件调用

import { Button } from 'bee-button';
React.render(<div>
    <div>
        <Button type="primary" size="lg" style={{color: '#000'}}>Button</Button>
    </div>
</div>, document.getElementById('target'));

样式引入

  • 可以使用link引入dist目录下button.css
<link rel="stylesheet" href="./node_modules/build/bee-button.css">
  • 可以在js中import样式
import "./node_modules/src/Button.scss"
//或是
import "./node_modules/build/bee-button.css"

使用tinper-bee组件库

(tinper-bee组件库使用方法)[]

API

参数 说明 类型 默认值
size 按钮大小(large medium small) string medium
type 类型(primary success) string ''
shape 形状(round squared) string ''
disabled 是否禁用(disabledtrue false) string false
className 增加额外的class string ''
htmlType html dom 的 type 属性(submit button reset) string button
style style 属性 object ''