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

bee-badge

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bee-badge

bee-badge ui component for react

  • 0.1.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
52
increased by20.93%
Maintainers
1
Weekly downloads
 
Created
Source

bee-badge

npm version Build Status Coverage Status

用来醒目的展示新的或未读的信息条目

安装步骤
$ git clone https://github.com/tinper-bee/bee-badge
$ cd bee-badge
$ npm install
$ npm run dev

使用

使用单独的bee-badge包

组件引入

先进行下载bee-badge包

npm install --save bee-badge

组件调用

import Badge from 'bee-badge';

React.render(<div>
    <div>
        <Badge color="primary">a</Badge>
    </div>
</div>, document.getElementById('target'));

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

API

参数说明类型默认值
colorone of: primary success info error warning darkstring''
className增加额外的classstring''

Keywords

FAQs

Package last updated on 29 Aug 2017

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