Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bee-button

Package Overview
Dependencies
Maintainers
15
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bee-button

tinper-bee button ui component for react

  • 2.0.0-alpha.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
259
increased by73.83%
Maintainers
15
Weekly downloads
 
Created
Source

button

npm version Build Status Coverage Status

react button component for tinper-bee

可定制的按钮组件

使用

使用单独的button包

组件引入

先进行下载bee-button包

npm install --save bee-button

组件调用

import Button from 'bee-button';
ReactDOM.render(
        <Button type="primary" size="lg" style={{color: '#000'}}>Button</Button>
        , document.getElementById('target'));
样式引入
  • 可以使用link引入build目录下Button.css
<link rel="stylesheet" href="./node_modules/bee-button/build/Button.css">
  • 可以在js中import样式
import "./node_modules/bee-button/src/Button.scss"
//或是
import "./node_modules/bee-button/build/Button.css"

API

参数说明类型默认值
size按钮大小(lg xg sm)string-
colors颜色(primary/secondary/accent/success/info/warning/danger/default)string''
shape形状(block/border/round/squared/floating/pillRight/pillLeft/icon)string''
disabled是否禁用(disabledtrue false)booleanfalse
bordered是否是边框型(borderedtrue false)booleanfalse
className增加额外的classstring''
htmlTypehtml dom 的 type 属性(submit button reset)stringbutton
stylestyle 属性object''
setup develop environment
$ npm install -g bee-tools
$ git clone https://github.com/tinper-bee/bee-button
$ cd bee-button
$ npm install
$ npm run dev

Keywords

FAQs

Package last updated on 21 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc