New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bee-loading-state

Package Overview
Dependencies
Maintainers
15
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bee-loading-state

bee-loading-state ui component for react

latest
Source
npmnpm
Version
2.0.5
Version published
Maintainers
15
Created
Source

bee-loading-state

npm version Build Status Coverage Status

bee-loading-state 组件常用于在按钮上加载状态

安装步骤

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

使用

loading-state依赖于button,使用loading-state还需把button组件down下来

$ npm install bee-loading-state
$ npm run dev

组件引入

先进行下载loading-state包

npm install --save bee-loading-state

组件调用

import LoadingState from 'bee-loading-state';
React.render(<div>
    <div>
        <LoadingState loadingTime="4000" loadingText="loading...">Confirm</LoadingState>
    </div>
</div>, document.getElementById('target'));

样式引入

  • 使用link引入build目录下LoadingState.css
<link rel="stylesheet" href="./node_modules/build/LoadingState.css">
  • 同理,在js中import样式也是LoadingState的样式

import "bee-loading-state/build/LoadingState.css"

使用tinper-bee组件库

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

API

button的参数在loading-state同样适用,可以使用其他Button组件的props,来设置LoadingState组件中按钮的props。 loading-state扩展的参数如下。

参数说明类型默认值
className类名string-
loadingText自定义loading时显示文字内容stringloading
show是否显示loadingbooleanfalse
showBackDrop是否显示loading时给button显示遮罩层booleantrue

Keywords

react

FAQs

Package last updated on 01 Jun 2020

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